Skip to content

Commit

Permalink
fix #351
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Apr 20, 2023
1 parent 1ad14e6 commit fe9cfdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion etc/dbus-serialbattery/lltjbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ def read_gen_data(self):

for t in range(self.temp_sensors):
temp1 = unpack_from(">H", gen_data, 23 + (2 * t))[0]
self.to_temp(t + 1, kelvin_to_celsius(temp1 / 10))
if t == 0:
self.to_temp("mos", kelvin_to_celsius(temp1 / 10))
else:
self.to_temp(t, kelvin_to_celsius(temp1 / 10))

return True

Expand Down
2 changes: 1 addition & 1 deletion etc/dbus-serialbattery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _get_list_from_config(

# Constants - Need to dynamically get them in future
DRIVER_VERSION = "1.0"
DRIVER_SUBVERSION = ".0-jkbms_ble (20230419)"
DRIVER_SUBVERSION = ".0-jkbms_ble (20230420)"
zero_char = chr(48)
degree_sign = "\N{DEGREE SIGN}"

Expand Down

0 comments on commit fe9cfdf

Please sign in to comment.