Browse Source

fixed size

pull/12/head
Marcus 3 years ago
parent
commit
11113da53e
  1. 2
      tools/esp8266/app.cpp

2
tools/esp8266/app.cpp

@ -430,7 +430,7 @@ void app::showLiveData(void) {
#else #else
// dump all data to web frontend // dump all data to web frontend
modHtml = "<pre>"; modHtml = "<pre>";
char topic[30], val[10]; char topic[30], val[12];
for(uint8_t i = 0; i < iv->listLen; i++) { 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(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, 12, "%.3f %s", mSys->getValue(iv, i), mSys->getUnit(iv, i));

Loading…
Cancel
Save