Skip to content

Commit

Permalink
Missing brackets typo
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Dec 10, 2023
1 parent 8ff5fdc commit 6a65ba3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8131,8 +8131,7 @@ def execute_plan(self):
and self.set_reserve_enable
and self.set_reserve_hold
and (status == "Charging")
and (not self.set_charge_freeze)
or (self.charge_limit_best[0] > self.reserve)
and ((not self.set_charge_freeze) or (self.charge_limit_best[0] > self.reserve))
and ((inverter.soc_percent + 1) >= self.charge_limit_percent_best[0])
):
status = "Hold charging"
Expand Down

0 comments on commit 6a65ba3

Please sign in to comment.