Kernel 10.3.1 ulTaskNotifyValueClear possible typo

#if( configUSE_TASK_NOTIFICATIONS == 1 )

uint32_t ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear )
{
TCB_t *pxTCB;
uint32_t ulReturn;

	/* If null is passed in here then it is the calling task that is having
	its notification state cleared. */
	pxTCB = prvGetTCBFromHandle( xTask );

	taskENTER_CRITICAL();
	{
		/* Return the notification as it was before the bits were cleared,
		then clear the bit mask. */
		ulReturn = pxCurrentTCB->ulNotifiedValue;   // wrong TCB pointer? should be pxTCB
		pxTCB->ulNotifiedValue &= ~ulBitsToClear;
	}
	taskEXIT_CRITICAL();

	return ulReturn;
}

#endif /* configUSE_TASK_NOTIFICATIONS */

1 Like

Excellent - thanks! Will get updated. This is a new function.