diff --git a/chip/stm32/spi.c b/chip/stm32/spi.c index 79a08a9e68..ac844f198d 100644 --- a/chip/stm32/spi.c +++ b/chip/stm32/spi.c @@ -184,7 +184,7 @@ static void reply(struct dma_channel *txdma, msg[i + SPI_MSG_HEADER_LEN] = ch; } msg_len += SPI_MSG_PROTO_LEN; - ASSERT(msg_len < sizeof(out_msg)); + ASSERT(msg_len <= sizeof(out_msg)); /* Add the checksum and get ready to send */ msg[msg_len - 2] = sum & 0xff;