fix: typo
This commit is contained in:
parent
3fb062b5cc
commit
2a858e096b
@ -38,7 +38,7 @@ void WebApiPowerLimiterClass::onStatus(AsyncWebServerRequest* request)
|
|||||||
const CONFIG_T& config = Configuration.get();
|
const CONFIG_T& config = Configuration.get();
|
||||||
|
|
||||||
root[F("enabled")] = config.PowerLimiter_Enabled;
|
root[F("enabled")] = config.PowerLimiter_Enabled;
|
||||||
root[F("solar_passtrough_enabled")] = config.PowerLimiter_SolarPassThroughEnabled;
|
root[F("solar_passthrough_enabled")] = config.PowerLimiter_SolarPassThroughEnabled;
|
||||||
root[F("battery_drain_strategy")] = config.PowerLimiter_BatteryDrainStategy;
|
root[F("battery_drain_strategy")] = config.PowerLimiter_BatteryDrainStategy;
|
||||||
root[F("is_inverter_behind_powermeter")] = config.PowerLimiter_IsInverterBehindPowerMeter;
|
root[F("is_inverter_behind_powermeter")] = config.PowerLimiter_IsInverterBehindPowerMeter;
|
||||||
root[F("inverter_id")] = config.PowerLimiter_InverterId;
|
root[F("inverter_id")] = config.PowerLimiter_InverterId;
|
||||||
@ -124,7 +124,7 @@ void WebApiPowerLimiterClass::onAdminPost(AsyncWebServerRequest* request)
|
|||||||
CONFIG_T& config = Configuration.get();
|
CONFIG_T& config = Configuration.get();
|
||||||
config.PowerLimiter_Enabled = root[F("enabled")].as<bool>();
|
config.PowerLimiter_Enabled = root[F("enabled")].as<bool>();
|
||||||
PowerLimiter.setMode(PL_MODE_ENABLE_NORMAL_OP); // User input sets PL to normal operation
|
PowerLimiter.setMode(PL_MODE_ENABLE_NORMAL_OP); // User input sets PL to normal operation
|
||||||
config.PowerLimiter_SolarPassThroughEnabled = root[F("solar_passtrough_enabled")].as<bool>();
|
config.PowerLimiter_SolarPassThroughEnabled = root[F("solar_passthrough_enabled")].as<bool>();
|
||||||
config.PowerLimiter_BatteryDrainStategy= root[F("battery_drain_strategy")].as<uint8_t>();
|
config.PowerLimiter_BatteryDrainStategy= root[F("battery_drain_strategy")].as<uint8_t>();
|
||||||
config.PowerLimiter_IsInverterBehindPowerMeter = root[F("is_inverter_behind_powermeter")].as<bool>();
|
config.PowerLimiter_IsInverterBehindPowerMeter = root[F("is_inverter_behind_powermeter")].as<bool>();
|
||||||
config.PowerLimiter_InverterId = root[F("inverter_id")].as<uint8_t>();
|
config.PowerLimiter_InverterId = root[F("inverter_id")].as<uint8_t>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user