Fixed incorrect value for peaks in MQTT

This commit is contained in:
Gunnar Skjold
2022-12-07 20:13:30 +01:00
parent 0145be851e
commit 2ff7044c85
3 changed files with 3 additions and 3 deletions

View File

@@ -735,7 +735,7 @@ void AmsWebServer::dataJson() {
if(peakCount > 5) peakCount = 5;
for(uint8_t i = 1; i <= peakCount; i++) {
if(!peaks.isEmpty()) peaks += ",";
peaks += String(ea->getPeak(i));
peaks += String(ea->getPeak(i).value / 100.0);
}
snprintf_P(buf, BufferSize, DATA_JSON,