Fixed some bugs from late night coding

This commit is contained in:
Gunnar Skjold
2020-02-16 15:46:01 +01:00
parent ccd818e1ab
commit 00edd94033
2 changed files with 16 additions and 11 deletions

View File

@@ -75,6 +75,9 @@ void AmsWebServer::setJson(StaticJsonDocument<1024> json) {
tqo = json["data"]["tQO"].as<double>();
}
} else {
if(po > 0) {
json["data"]["PO"] = po;
}
if(u1 > 0) {
json["data"]["U1"] = u1;
json["data"]["I1"] = i1;