Skip to content

Commit

Permalink
DPL: save verbose logging switch value to config (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen authored Aug 7, 2023
1 parent c950eb7 commit 3db237c
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 @@ -126,6 +126,7 @@ void WebApiPowerLimiterClass::onAdminPost(AsyncWebServerRequest* request)
CONFIG_T& config = Configuration.get();
config.PowerLimiter_Enabled = root[F("enabled")].as<bool>();
PowerLimiter.setMode(PL_MODE_ENABLE_NORMAL_OP); // User input sets PL to normal operation
config.PowerLimiter_VerboseLogging = root[F("verbose_logging")].as<bool>();
config.PowerLimiter_SolarPassThroughEnabled = root[F("solar_passthrough_enabled")].as<bool>();
config.PowerLimiter_SolarPassThroughLosses = root[F("solar_passthrough_losses")].as<uint8_t>();
config.PowerLimiter_BatteryDrainStategy= root[F("battery_drain_strategy")].as<uint8_t>();
Expand Down

0 comments on commit 3db237c

Please sign in to comment.