Skip to content

Commit 550e55a

Browse files
committed
Bug fix to ulTaskNotifyValueClear
1 parent 8ec5c6f commit 550e55a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tasks.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5153,7 +5153,11 @@ TickType_t uxReturn;
51535153
{
51545154
/* Return the notification as it was before the bits were cleared,
51555155
then clear the bit mask. */
5156+
#if 1 // DC bug fix
5157+
ulReturn = pxTCB->ulNotifiedValue;
5158+
#else
51565159
ulReturn = pxCurrentTCB->ulNotifiedValue;
5160+
#endif
51575161
pxTCB->ulNotifiedValue &= ~ulBitsToClear;
51585162
}
51595163
taskEXIT_CRITICAL();

0 commit comments

Comments
 (0)