hopefully fixed spi read/write errors
This commit is contained in:
parent
d4d69daabd
commit
e7c82dbc47
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue