Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Mar 14, 2024
2 parents 5e0971d + 822f883 commit ff9bcbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion etc/dbus-serialbattery/bms/daly.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,10 @@ def read_sentence(self, ser, expected_reply, timeout=0.5):
return False

reply += ser.read(12)
_, id, cmd, length = unpack_from(">BBBB", reply)
try:
_, id, cmd, length = unpack_from(">BBBB", reply)
except exception:
return False

# logger.info(f"reply: {utils.bytearray_to_string(reply)}") # debug

Expand Down
Empty file modified etc/dbus-serialbattery/dbus-serialbattery.py
100644 → 100755
Empty file.

0 comments on commit ff9bcbe

Please sign in to comment.