fix yield correction (data type was not correct during save)

This commit is contained in:
lumapu 2023-06-18 01:03:55 +02:00
parent c147906834
commit 0118fd1431
4 changed files with 4 additions and 4 deletions

View file

@ -509,7 +509,7 @@ class Web {
// max channel power / name
for (uint8_t j = 0; j < 6; j++) {
iv->config->yieldCor[j] = request->arg("inv" + String(i) + "YieldCor" + String(j)).toInt();
iv->config->yieldCor[j] = request->arg("inv" + String(i) + "YieldCor" + String(j)).toDouble();
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);
}