diff --git a/src/can.c b/src/can.c --- a/src/can.c +++ b/src/can.c @@ -125,9 +125,10 @@ void HAL_CAN_RxCpltCallback(CAN_HandleTy if ((hcan->pRxMsg->StdId == can_rx_id) | (hcan->pRxMsg->StdId == can_broadcast_id)) { protocol_receive_message(hcan->pRxMsg); - HAL_CAN_Receive_IT(&can_handle, CAN_FIFO0); } - led_start_time(LED_CAN, 500); + + led_blink_once(LED_CAN, 500); + HAL_CAN_Receive_IT(&can_handle, CAN_FIFO0); } void HAL_CAN_TxCpltCallback(CAN_HandleTypeDef* hcan) {}