Skip to content

Commit

Permalink
Fix uart write answer reading (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilnovak authored Mar 21, 2023
1 parent b546782 commit 01abe03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bno055/connectors/uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def write(self, reg_addr, length, data: bytes):

try:
self.serialConnection.write(buf_out)
buf_in = bytearray(self.serialConnection.read())
buf_in = bytearray(self.serialConnection.read(2))
except Exception: # noqa: B902
return False

Expand Down

0 comments on commit 01abe03

Please sign in to comment.