From 6261106b30c7afa45c3b3d9ae3639662f1e34057 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sun, 25 Oct 2026 08:31:08 +0300 Subject: [PATCH] style: minor changes --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 1ef8e57..4a36f3b 100644 --- a/src/main.c +++ b/src/main.c @@ -516,7 +516,7 @@ static void zh_nrf24_read_payload(uint8_t *buf, uint8_t count) { PORTB &= ~(1 << PB2); zh_spi_transfer(NRF_CMD_R_RX_PAYLOAD); - while (count--) + while (count-- != 0) { *buf++ = zh_spi_transfer(0xFF); }