From e7c82dbc471a3a9e9220e8c93d962970370a8e02 Mon Sep 17 00:00:00 2001 From: HerrNamenlos123 Date: Fri, 28 Jan 2022 15:43:20 +0100 Subject: [PATCH] hopefully fixed spi read/write errors --- compLib/Spi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compLib/Spi.py b/compLib/Spi.py index 731d75a..d585365 100644 --- a/compLib/Spi.py +++ b/compLib/Spi.py @@ -121,6 +121,7 @@ class Spi(object): if rx_buffer[1] != write_reg: Logging.get_logger().error(f"SPI error during read/write of register {write_reg}!") + return [0] * SPI_BUFFER_SIZE return rx_buffer