Skip to content

Commit b4ccdfe

Browse files
authored
Merge pull request #34 from syvotouf/develop
osEventFlagsWait: Fix flag comparison
2 parents 9f4f1fa + 78de2a6 commit b4ccdfe

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
@@ -1181,7 +1181,7 @@ uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t opti
11811181
rflags = xEventGroupWaitBits (hEventGroup, (EventBits_t)flags, exit_clr, wait_all, (TickType_t)timeout);
11821182

11831183
if (options & osFlagsWaitAll) {
1184-
if (flags != rflags) {
1184+
if ((flags & rflags) != flags) {
11851185
if (timeout > 0U) {
11861186
rflags = (uint32_t)osErrorTimeout;
11871187
} else {

0 commit comments

Comments
 (0)