The example for xTaskNotifyStateClear in www freertos org/xTaskNotifyStateClear.html shows that we are supposed to clear the state of the notification when using it along with ulTaskNotifyTake but this function works on the notification value, not the notification state.
Is it possible the example is not correct and thus misleading?
Thanks