Skip to content

Commit 7823ec0

Browse files
author
Stephen Street
committed
osEventFlagsSet in correctly handles status return from xEventGroupSetBitsFromISR
1 parent 1c2c023 commit 7823ec0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMSIS/RTOS2/FreeRTOS/Source/cmsis_os2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ uint32_t osEventFlagsSet (osEventFlagsId_t ef_id, uint32_t flags) {
10401040
else if (IS_IRQ()) {
10411041
yield = pdFALSE;
10421042

1043-
if (xEventGroupSetBitsFromISR (hEventGroup, (EventBits_t)flags, &yield) != pdFAIL) {
1043+
if (xEventGroupSetBitsFromISR (hEventGroup, (EventBits_t)flags, &yield) == pdFAIL) {
10441044
rflags = (uint32_t)osErrorResource;
10451045
} else {
10461046
rflags = flags;

0 commit comments

Comments
 (0)