Skip to content

Commit

Permalink
Bug fix to ulTaskNotifyValueClear
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Dec 23, 2022
1 parent 8ec5c6f commit 550e55a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -5153,7 +5153,11 @@ TickType_t uxReturn;
{
/* Return the notification as it was before the bits were cleared,
then clear the bit mask. */
#if 1 // DC bug fix
ulReturn = pxTCB->ulNotifiedValue;
#else
ulReturn = pxCurrentTCB->ulNotifiedValue;
#endif
pxTCB->ulNotifiedValue &= ~ulBitsToClear;
}
taskEXIT_CRITICAL();
Expand Down

0 comments on commit 550e55a

Please sign in to comment.