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>
This commit is contained in:
parent
82a1661c99
commit
d644007c32
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue