Fixed decimals in json

This commit is contained in:
Gunnar Skjold
2021-10-23 10:38:53 +02:00
parent 21a4102553
commit e929f87ea9
4 changed files with 42 additions and 50 deletions

View File

@@ -695,7 +695,7 @@ void AmsWebServer::dataJson() {
mqttStatus = 3;
}
char json[284];
char json[290];
snprintf_P(json, sizeof(json), DATA_JSON,
maxPwr == 0 ? meterState->isThreePhase() ? 20000 : 10000 : maxPwr,
meterConfig->productionCapacity,