diff options
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),
|