Skip to content

Commit

Permalink
Crash with iboost enabled (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Mar 8, 2024
1 parent 856f288 commit 87ad9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
if not "PRED_GLOBAL" in globals():
PRED_GLOBAL = {}

THIS_VERSION = "v7.16.4"
THIS_VERSION = "v7.16.5"
PREDBAT_FILES = ["predbat.py"]
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z"
TIME_FORMAT_SECONDS = "%Y-%m-%dT%H:%M:%S.%f%z"
Expand Down Expand Up @@ -1534,8 +1534,8 @@ def run_prediction(self, charge_limit, charge_window, discharge_window, discharg
discharge_rate_now = self.battery_rate_max_discharge

# IBoost on load, don't do on discharge
iboost_amount = 0
if self.iboost_enable and (discharge_window_n < 0):
iboost_amount = 0
if iboost_today_kwh < self.iboost_max_energy:
if self.iboost_gas:
if rate_gas:
Expand Down

0 comments on commit 87ad9c1

Please sign in to comment.