Skip to content

Commit

Permalink
disable TimeToSoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Louisvdw committed Feb 12, 2022
1 parent 3ba86b0 commit 80a5c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/dbus-serialbattery/dbushelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ def publish_dbus(self):
self._dbusservice['/Voltages/Diff'] = self.battery.get_max_cell_voltage() - self.battery.get_min_cell_voltage()

# Update TimeToSoC
for num in [100, 95, 90, 85, 80, 75, 70, 65, 60, 55, 50, 45, 40, 35, 30, 25, 20, 15, 10, 5, 0]:
self._dbusservice['/TimeToSoC/' + str(num)] = self.battery.get_timetosoc(num)
# for num in [100, 95, 90, 85, 80, 75, 70, 65, 60, 55, 50, 45, 40, 35, 30, 25, 20, 15, 10, 5, 0]:
# self._dbusservice['/TimeToSoC/' + str(num)] = self.battery.get_timetosoc(num)

logger.debug("logged to dbus ", round(self.battery.voltage / 100, 2),
round(self.battery.current / 100, 2),
Expand Down

0 comments on commit 80a5c03

Please sign in to comment.