Fixed config file loading of energyaccounting

This commit is contained in:
Gunnar Skjold
2022-07-05 21:48:56 +02:00
parent 32ba6c31f0
commit a90ed40aee
4 changed files with 49 additions and 20 deletions

View File

@@ -2442,7 +2442,7 @@ void AmsWebServer::configFileDownload() {
uint16_t *maxHours = ea->getMaxHours();
server.sendContent(buf, snprintf(buf, BufferSize, " %d", eac.hours));
for(int i = 0; i < eac.hours; i++) {
server.sendContent(buf, snprintf(buf, BufferSize, " %d", maxHours[i]));
server.sendContent(buf, snprintf(buf, BufferSize, " %.2f", maxHours[i]/100.0));
}
}
server.sendContent("\n");