Skip to content

Commit

Permalink
U
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jan 30, 2025
1 parent a44ca61 commit a616fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/drivers/fdcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void can_clear_send(FDCAN_GlobalTypeDef *FDCANx, uint8_t can_number) {
uint32_t time = microsecond_timer_get();

// Resetting CAN core is a slow blocking operation, limit frequency
if (get_ts_elapsed(time, last_reset) > 100000) { // 10 Hz
if (get_ts_elapsed(time, last_reset) > 100000U) { // 10 Hz
can_health[can_number].can_core_reset_cnt += 1U;
can_health[can_number].total_tx_lost_cnt += (FDCAN_TX_FIFO_EL_CNT - (FDCANx->TXFQS & FDCAN_TXFQS_TFFL)); // TX FIFO msgs will be lost after reset
llcan_clear_send(FDCANx);
Expand Down

0 comments on commit a616fd2

Please sign in to comment.