diff --git a/drivers/can/can_stm32.c b/drivers/can/can_stm32.c index 07f191035cc..19c8a727bf2 100644 --- a/drivers/can/can_stm32.c +++ b/drivers/can/can_stm32.c @@ -127,6 +127,7 @@ static inline void can_stm32_rx_isr_handler(const struct device *dev) if (can->RF0R & CAN_RF0R_FOVR0) { LOG_ERR("RX FIFO Overflow"); + CAN_STATS_RX_OVERRUN_INC(dev); } }