prevent send devcontrol request during disabled night communication

changed yield total correction as module (inverter input) value #570
MQTT Yield Day zero, next try to fix #671
This commit is contained in:
lumapu 2023-02-12 02:00:54 +01:00
parent a843ab6881
commit ca25f16548
13 changed files with 37 additions and 32 deletions

View file

@ -483,13 +483,13 @@ class Web {
case 0x61: iv->type = INV_TYPE_4CH; iv->channels = 4; break;
default: break;
}
iv->config->yieldCor = request->arg("inv" + String(i) + "YieldCor").toInt();
// name
request->arg("inv" + String(i) + "Name").toCharArray(iv->config->name, MAX_NAME_LENGTH);
// max channel power / name
for(uint8_t j = 0; j < 4; j++) {
iv->config->yieldCor[j] = request->arg("inv" + String(i) + "YieldCor" + String(j)).toInt();
iv->config->chMaxPwr[j] = request->arg("inv" + String(i) + "ModPwr" + String(j)).toInt() & 0xffff;
request->arg("inv" + String(i) + "ModName" + String(j)).toCharArray(iv->config->chName[j], MAX_NAME_LENGTH);
}