From 3e9f6e3c454715380dfe5e1399a2aceb8f452b04 Mon Sep 17 00:00:00 2001 From: Maciej Pasternacki Date: Sat, 20 Feb 2021 18:30:54 +0100 Subject: [PATCH] Report success in binary SPI write-then-read when there's nothing to read --- Firmware/spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/spi.c b/Firmware/spi.c index 2d79dd33..b6820299 100644 --- a/Firmware/spi.c +++ b/Firmware/spi.c @@ -1036,6 +1036,8 @@ void spi_read_write_io(const bool engage_cs) { if (bytes_to_read > 0) { spi_read_to_uart(bytes_to_read); + } else { + REPORT_IO_SUCCESS(); } /* Reset the CS line if needed. */