aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/osal/nil/osal.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/osal/nil/osal.h')
-rw-r--r--os/hal/osal/nil/osal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/osal/nil/osal.h b/os/hal/osal/nil/osal.h
index 5f3ff1bc5..9a8d16d12 100644
--- a/os/hal/osal/nil/osal.h
+++ b/os/hal/osal/nil/osal.h
@@ -875,8 +875,9 @@ static inline void osalEventBroadcastFlags(event_source_t *esp,
osalDbgCheck(esp != NULL);
chSysLock();
- osalEventBroadcastFlagsI(esp, flags);
- chSchRescheduleS();
+ esp->flags |= flags;
+ if (esp->cb != NULL) {
+ esp->cb(esp);
chSysUnlock();
}