diff options
Diffstat (limited to 'os/rt/src/chevents.c')
-rw-r--r-- | os/rt/src/chevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/src/chevents.c b/os/rt/src/chevents.c index 3286c5f94..e5182b156 100644 --- a/os/rt/src/chevents.c +++ b/os/rt/src/chevents.c @@ -262,7 +262,7 @@ eventflags_t chEvtGetAndClearFlags(event_listener_t *elp) { elp->flags = (eventflags_t)0;
chSysUnlock();
- return flags;
+ return flags & elp->wflags;
}
/**
|