Skip to content

Commit

Permalink
make sure that PL is enabled if user uses webinterface
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteSchm committed Apr 16, 2023
1 parent a306bc1 commit 0d0a624
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WebApi_powerlimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ void WebApiPowerLimiterClass::onAdminPost(AsyncWebServerRequest* request)

CONFIG_T& config = Configuration.get();
config.PowerLimiter_Enabled = root[F("enabled")].as<bool>();
PowerLimiter.setDisable(false); // User input clears the PL internal disable flag
config.PowerLimiter_SolarPassThroughEnabled = root[F("solar_passtrough_enabled")].as<bool>();
config.PowerLimiter_BatteryDrainStategy= root[F("battery_drain_strategy")].as<uint8_t>();
config.PowerLimiter_IsInverterBehindPowerMeter = root[F("is_inverter_behind_powermeter")].as<bool>();
Expand Down

0 comments on commit 0d0a624

Please sign in to comment.