diff options
Diffstat (limited to 'os/hal/ports/STM32/LLD/CANv1/can_lld.c')
-rw-r--r-- | os/hal/ports/STM32/LLD/CANv1/can_lld.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/CANv1/can_lld.c b/os/hal/ports/STM32/LLD/CANv1/can_lld.c index 345d209f1..1c2895acf 100644 --- a/os/hal/ports/STM32/LLD/CANv1/can_lld.c +++ b/os/hal/ports/STM32/LLD/CANv1/can_lld.c @@ -278,6 +278,8 @@ static void can_lld_sce_handler(CANDriver *canp) { flags = (eventflags_t)(esr & 7);
if ((esr & CAN_ESR_LEC) > 0)
flags |= CAN_FRAMING_ERROR;
+#else
+ flags = 0;
#endif
osalSysLockFromISR();
|