* Divisor HM-400 angepasst (für Wh)

* Ausgabebuffer angepasst, war mit 10 Bytes zu wenig um z.B. YieldTotal auszugeben (Unit wurde abgeschnitten)
This commit is contained in:
Marcus 2022-04-27 10:58:20 +02:00
parent 26f1179666
commit c65607026c
2 changed files with 2 additions and 2 deletions

View file

@ -433,7 +433,7 @@ void app::showLiveData(void) {
char topic[30], val[10];
for(uint8_t i = 0; i < iv->listLen; i++) {
snprintf(topic, 30, "%s/ch%d/%s", iv->name, iv->assign[i].ch, mSys->getFieldName(iv, i));
snprintf(val, 10, "%.3f %s", mSys->getValue(iv, i), mSys->getUnit(iv, i));
snprintf(val, 12, "%.3f %s", mSys->getValue(iv, i), mSys->getUnit(iv, i));
modHtml += String(topic) + ": " + String(val) + "\n";
}
modHtml += "</pre>";