diff --git a/tools/esp8266/app.cpp b/tools/esp8266/app.cpp index 2addd94c..63670a14 100644 --- a/tools/esp8266/app.cpp +++ b/tools/esp8266/app.cpp @@ -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, 12, "%.3f %s", mSys->getValue(iv, i), mSys->getUnit(iv, i)); + snprintf(val, 10, "%.3f %s", mSys->getValue(iv, i), mSys->getUnit(iv, i)); modHtml += String(topic) + ": " + String(val) + "\n"; } modHtml += ""; diff --git a/tools/esp8266/hmInverters.h b/tools/esp8266/hmInverters.h index 0b516410..0226a8cf 100644 --- a/tools/esp8266/hmInverters.h +++ b/tools/esp8266/hmInverters.h @@ -64,7 +64,7 @@ const byteAssign_t hm400assignment[] = { { FLD_IDC, UNIT_A, CH1, CMD01, 5, 2, 100 }, { FLD_PDC, UNIT_W, CH1, CMD01, 7, 2, 10 }, { FLD_YT, UNIT_KWH, CH1, CMD01, 9, 4, 1000 }, - { FLD_YD, UNIT_WH, CH1, CMD01, 13, 2, 1 }, + { FLD_YD, UNIT_WH, CH1, CMD01, 13, 2, 1000 }, { FLD_UAC, UNIT_V, CH0, CMD01, 15, 2, 10 }, { FLD_F, UNIT_HZ, CH0, CMD82, 1, 2, 100 }, { FLD_PAC, UNIT_W, CH0, CMD82, 3, 2, 10 },