Skip to content

Commit

Permalink
Update jkbms_can.py
Browse files Browse the repository at this point in the history
  • Loading branch information
p0l0us authored Jul 30, 2024
1 parent 1508b2a commit ea38321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/dbus-serialbattery/bms/jkbms_can.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def read_serial_data_jkbms_CAN(self):
self.cell_count = max_cell_cnt
self.get_settings()

self.min_cell_voltage = min_cell_volt
self.max_cell_voltage = max_cell_volt
self.cell_min_voltage = min_cell_volt
self.cell_max_voltage = max_cell_volt

elif msg.arbitration_id in self.CAN_FRAMES[self.CELL_TEMP]:
max_temp = unpack_from("<B", bytes([msg.data[0]]))[0] - 50
Expand Down

0 comments on commit ea38321

Please sign in to comment.