We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a43f57d commit 5ab4b4aCopy full SHA for 5ab4b4a
dbus-serialbattery/bms/ks48100.py
@@ -237,8 +237,8 @@ def get_cap_params(self, ser):
237
self.total_charge_capacity = int(payload[12:20], base=16) / 1
238
# total_discharge_capacity
239
self.history.total_ah_drawn = int(payload[20:28], base=16)
240
- self.history.charged_energy = int(int(payload[28:32], base=16) / 10)
241
- self.history.discharged_energy = int(int(payload[32:36], base=16) / 10)
+ self.history.charged_energy = int(int(payload[28:32], base=16) / 100)
+ self.history.discharged_energy = int(int(payload[32:36], base=16) / 100)
242
243
result = True
244
else:
0 commit comments