Skip to content

Commit

Permalink
Merge pull request #673 from idstein/bugfix/lltjbd-decode-name
Browse files Browse the repository at this point in the history
bugfix: LLTJBD BMS ignore non ASCII letters for hardware version
  • Loading branch information
mr-manuel committed May 26, 2023
2 parents 8151719 + d899504 commit 51c2786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/dbus-serialbattery/bms/lltjbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def read_hardware_data(self):

self._product_name = unpack_from(
">" + str(len(hardware_data)) + "s", hardware_data
)[0].decode()
)[0].decode("ascii", errors="ignore")
logger.debug(self._product_name)
return True

Expand Down

0 comments on commit 51c2786

Please sign in to comment.