Skip to content

Commit cbb8f47

Browse files
authored
Merge pull request #13 from shaper-street/develop
Fix for issue #12 verified. Many thanks for the
2 parents 1c2c023 + 7823ec0 commit cbb8f47

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)