Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
unique_identifier() is a function
fix 'stanby' typo
  • Loading branch information
epierce78 authored Jul 5, 2024
1 parent 9fe9e84 commit b5b42e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/dbus-serialbattery/bms/eg4_ll.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def read_cell_data(self):
self.cell_average = cell_average / self.cell_count

if status_hex == "00":
status_code = "Stanby"
status_code = "Standby"
elif status_hex == "01":
status_code = "Charging"
elif status_hex == "02":
Expand Down Expand Up @@ -352,7 +352,7 @@ def read_cell_data(self):
logger.info("===== HW Info =====")
logger.info(f"Battery Make/Model: {str(self.custom_field)}")
logger.info(f"Hardware Version: {str(self.hardware_version)}")
logger.info(f"Serial Number: {str(self.unique_identifier)}")
logger.info(f"Serial Number: {str(self.unique_identifier())}")
logger.info("===== BMS Data =====")
logger.info(
"Cell Total Voltage: "
Expand Down

0 comments on commit b5b42e0

Please sign in to comment.