Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel authored Aug 27, 2023
1 parent c7d2ad1 commit 4e93d6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etc/dbus-serialbattery/battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def manage_charge_current(self) -> None:
if self.max_battery_discharge_current != tmp:
if tmp in discharge_limits:
# do not add string, if global limitation is applied
if charge_limits["tmp"] != "Max Battery Charge Current":
if discharge_limits["tmp"] != "Max Battery Discharge Current":
discharge_limits.update(
{tmp: discharge_limits[tmp] + ", Cell Voltage"}
)
Expand All @@ -673,7 +673,7 @@ def manage_charge_current(self) -> None:
if self.max_battery_discharge_current != tmp:
if tmp in discharge_limits:
# do not add string, if global limitation is applied
if charge_limits["tmp"] != "Max Battery Charge Current":
if discharge_limits["tmp"] != "Max Battery Discharge Current":
discharge_limits.update({tmp: discharge_limits[tmp] + ", Temp"})
else:
pass
Expand All @@ -685,7 +685,7 @@ def manage_charge_current(self) -> None:
if self.max_battery_discharge_current != tmp:
if tmp in discharge_limits:
# do not add string, if global limitation is applied
if charge_limits["tmp"] != "Max Battery Charge Current":
if discharge_limits["tmp"] != "Max Battery Discharge Current":
discharge_limits.update({tmp: discharge_limits[tmp] + ", SoC"})
else:
pass
Expand Down

0 comments on commit 4e93d6a

Please sign in to comment.