aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-09-19 12:55:13 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-09-19 12:55:13 +0000
commit1f9c410180172e13e172a8e742b3421647648b51 (patch)
tree5e9755aa3361abe369f10689ef21fa529a2d1780 /os/rt
parent736b8dfa592c6f6422e537893aed3ec8e0fdf259 (diff)
downloadChibiOS-1f9c410180172e13e172a8e742b3421647648b51.tar.gz
ChibiOS-1f9c410180172e13e172a8e742b3421647648b51.tar.bz2
ChibiOS-1f9c410180172e13e172a8e742b3421647648b51.zip
Fixed bug #977.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12275 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/rt')
-rw-r--r--os/rt/src/chevents.c2
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;
}
/**