|
@ -240,6 +240,7 @@ void web::showSave(AsyncWebServerRequest *request) { |
|
|
// active power limit
|
|
|
// active power limit
|
|
|
uint16_t actPwrLimit = request->arg("inv" + String(i) + "ActivePowerLimit").toInt(); |
|
|
uint16_t actPwrLimit = request->arg("inv" + String(i) + "ActivePowerLimit").toInt(); |
|
|
uint16_t actPwrLimitControl = request->arg("inv" + String(i) + "PowerLimitControl").toInt(); |
|
|
uint16_t actPwrLimitControl = request->arg("inv" + String(i) + "PowerLimitControl").toInt(); |
|
|
|
|
|
if(NoPowerLimit != actPwrLimitControl) { |
|
|
if (actPwrLimit != 0xffff && actPwrLimit > 0){ |
|
|
if (actPwrLimit != 0xffff && actPwrLimit > 0){ |
|
|
iv->powerLimit[0] = actPwrLimit; |
|
|
iv->powerLimit[0] = actPwrLimit; |
|
|
iv->powerLimit[1] = actPwrLimitControl; |
|
|
iv->powerLimit[1] = actPwrLimitControl; |
|
@ -259,6 +260,7 @@ void web::showSave(AsyncWebServerRequest *request) { |
|
|
iv->devControlRequest = true; |
|
|
iv->devControlRequest = true; |
|
|
DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to unlimted")); |
|
|
DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to unlimted")); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// name
|
|
|
// name
|
|
|
request->arg("inv" + String(i) + "Name").toCharArray(iv->name, MAX_NAME_LENGTH); |
|
|
request->arg("inv" + String(i) + "Name").toCharArray(iv->name, MAX_NAME_LENGTH); |
|
|