Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Apr 1, 2024
1 parent 4d8f35f commit aaa940c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
* `BULK_AFTER_DAYS` -> `SOC_RESET_AFTER_DAYS`


## v1.2.x

## v1.2.20240401

* Added: Check if the device instance is already used by @mr-manuel
* Added: Check if there is enough space on system and data partitions before installation by @mr-manuel
Expand Down
4 changes: 2 additions & 2 deletions etc/dbus-serialbattery/battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ def manage_charge_current(self) -> None:
charge_limits.update({tmp: "SoC"})

# set CCL to 0, if BMS does not allow to charge
if self.charge_fet is False and self.block_because_disconnect:
if self.charge_fet is False or self.block_because_disconnect:
if 0 in charge_limits:
charge_limits.update({0: charge_limits[0] + ", BMS"})
else:
Expand Down Expand Up @@ -888,7 +888,7 @@ def manage_charge_current(self) -> None:
discharge_limits.update({tmp: "SoC"})

# set DCL to 0, if BMS does not allow to discharge
if self.discharge_fet is False and self.block_because_disconnect:
if self.discharge_fet is False or self.block_because_disconnect:
if 0 in discharge_limits:
discharge_limits.update({0: discharge_limits[0] + ", BMS"})
else:
Expand Down

0 comments on commit aaa940c

Please sign in to comment.