diff options
| author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-06 12:52:16 +0000 | 
|---|---|---|
| committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-06 12:52:16 +0000 | 
| commit | 006081900238dbbff8dd472d72e49e0413a45bc9 (patch) | |
| tree | 69ca37ecb6d9a057cde9cc77001b5bdfd28643fc /os/rt/src | |
| parent | 86ca0fdb8ba28ca4e86afff33fb2ad6e28dd4c2e (diff) | |
| download | ChibiOS-006081900238dbbff8dd472d72e49e0413a45bc9.tar.gz ChibiOS-006081900238dbbff8dd472d72e49e0413a45bc9.tar.bz2 ChibiOS-006081900238dbbff8dd472d72e49e0413a45bc9.zip | |
Fixed bug #977.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12242 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/rt/src')
| -rw-r--r-- | os/rt/src/chevents.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/os/rt/src/chevents.c b/os/rt/src/chevents.c index 0f41699cf..3286c5f94 100644 --- a/os/rt/src/chevents.c +++ b/os/rt/src/chevents.c @@ -333,7 +333,7 @@ void chEvtBroadcastFlags(event_source_t *esp, eventflags_t flags) {  }
  /**
 - * @brief   Returns the flags associated to an @p event_listener_t.
 + * @brief   Returns the unmasked flags associated to an @p event_listener_t.
   * @details The flags are returned and the @p event_listener_t flags mask is
   *          cleared.
   *
 @@ -349,7 +349,7 @@ eventflags_t chEvtGetAndClearFlagsI(event_listener_t *elp) {    flags = elp->flags;
    elp->flags = (eventflags_t)0;
 -  return flags;
 +  return flags & elp->wflags;
  }
  /**
 | 
