Skip to content

Commit

Permalink
Fix black lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiquito committed Jan 6, 2025
1 parent 8b47d18 commit 58a303f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbus-serialbattery/bms/eg4_lifepower.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def read_status_data(self):
# https://github.com/mr-manuel/venus-os_dbus-serialbattery/issues/155

# Mask out the high bits
# 0x3fff = 16383 = 0b0011_1111_1111_1111
cell.voltage = (groups[0][i] & 0x3fff) / 1000
# 0x3FFF = 16383 = 0b0011_1111_1111_1111
cell.voltage = (groups[0][i] & 0x3FFF) / 1000

# Current
self.current = (30000 - groups[1][0]) / 100
Expand Down

0 comments on commit 58a303f

Please sign in to comment.