diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-07-29 06:56:10 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-07-29 06:56:10 +0000 |
commit | b0b485d70c2a0f38a785103ea1d1181e755e2dad (patch) | |
tree | 4215242da599016a22f02e9ec3529eb374665d37 /os/hal/src | |
parent | 4a4cf02fd5fe41339922f59b62ca95491d4178b2 (diff) | |
download | ChibiOS-b0b485d70c2a0f38a785103ea1d1181e755e2dad.tar.gz ChibiOS-b0b485d70c2a0f38a785103ea1d1181e755e2dad.tar.bz2 ChibiOS-b0b485d70c2a0f38a785103ea1d1181e755e2dad.zip |
Fixed bugs #619 and #620.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8124 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/can.c b/os/hal/src/can.c index 38a71873f..cfaa7264e 100644 --- a/os/hal/src/can.c +++ b/os/hal/src/can.c @@ -213,7 +213,7 @@ msg_t canReceive(CANDriver *canp, systime_t timeout) {
osalDbgCheck((canp != NULL) && (crfp != NULL) &&
- (mailbox < (canmbx_t)CAN_RX_MAILBOXES));
+ (mailbox <= (canmbx_t)CAN_RX_MAILBOXES));
osalSysLock();
osalDbgAssert((canp->state == CAN_READY) || (canp->state == CAN_SLEEP),
|