From ded5ceec58502a0c45a41ea103eab5b7bd8e8875 Mon Sep 17 00:00:00 2001 From: helgeerbe Date: Wed, 14 Jun 2023 12:49:54 +0200 Subject: [PATCH] Fix: Make power limiter intervall configurable Allows to change the power limiter intervall settings in the config file. --- src/Configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 9635db6a..741ac1d3 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -351,7 +351,7 @@ bool ConfigurationClass::read() config.PowerLimiter_Enabled = powerlimiter["enabled"] | POWERLIMITER_ENABLED; config.PowerLimiter_SolarPassThroughEnabled = powerlimiter["solar_passtrough_enabled"] | POWERLIMITER_SOLAR_PASSTROUGH_ENABLED; config.PowerLimiter_BatteryDrainStategy = powerlimiter["battery_drain_strategy"] | POWERLIMITER_BATTERY_DRAIN_STRATEGY; - config.PowerLimiter_Interval = POWERLIMITER_INTERVAL; + config.PowerLimiter_Interval = powerlimiter["interval"] | POWERLIMITER_INTERVAL; config.PowerLimiter_IsInverterBehindPowerMeter = powerlimiter["is_inverter_behind_powermeter"] | POWERLIMITER_IS_INVERTER_BEHIND_POWER_METER; config.PowerLimiter_InverterId = powerlimiter["inverter_id"] | POWERLIMITER_INVERTER_ID; config.PowerLimiter_InverterChannelId = powerlimiter["inverter_channel_id"] | POWERLIMITER_INVERTER_CHANNEL_ID;