From 5ee618e2f14cc442df8d6865f730656655c2e7bd Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 23 Sep 2025 18:03:05 -0700 Subject: [PATCH] spi: let err count overflow (#2279) --- board/drivers/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/drivers/spi.h b/board/drivers/spi.h index e112b3f3..d291fe06 100644 --- a/board/drivers/spi.h +++ b/board/drivers/spi.h @@ -200,7 +200,7 @@ void spi_rx_done(void) { llspi_miso_dma(spi_buf_tx, response_len); spi_state = next_rx_state; - if (!checksum_valid && (spi_error_count < UINT16_MAX)) { + if (!checksum_valid) { spi_error_count += 1U; } }