Skip to content

Commit

Permalink
Merge pull request #762 from idstein/patch-1
Browse files Browse the repository at this point in the history
bugfix: Cycle Capacity is in 10 mAh
  • Loading branch information
mr-manuel committed Jul 27, 2023
2 parents a453f68 + 1bf3b7a commit 15514bd
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 @@ -282,7 +282,7 @@ def get_settings(self):
with self.eeprom(writable=False):
cycle_cap = self.read_serial_data_llt(readCmd(REG_CYCLE_CAP))
if cycle_cap:
self.cycle_capacity = float(unpack_from(">H", cycle_cap)[0] / 100.0)
self.cycle_capacity = float(unpack_from(">H", cycle_cap)[0])
charge_over_current = self.read_serial_data_llt(readCmd(REG_CHGOC))
if charge_over_current:
self.max_battery_charge_current = float(
Expand Down

0 comments on commit 15514bd

Please sign in to comment.