Skip to content
Permalink
Browse files

drivers: can: stm32 Add error message for buffer overflow

This commit adds an LOG_ERR message for RX fifo overflow.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
  • Loading branch information...
alexanderwachter authored and nashif committed Jul 2, 2019
1 parent 82a1661 commit d644007c328e004902b8cbbc7181f74adcacccbd
Showing with 4 additions and 0 deletions.
  1. +4 −0 drivers/can/can_stm32.c
@@ -83,6 +83,10 @@ void can_stm32_rx_isr_handler(CAN_TypeDef *can, struct can_stm32_data *data)
/* Release message */
can->RF0R |= CAN_RF0R_RFOM0;
}

if (can->RF0R & CAN_RF0R_FOVR0) {
LOG_ERR("RX FIFO Overflow");
}
}

static inline

0 comments on commit d644007

Please sign in to comment.
You can’t perform that action at this time.