From 15bc5f2b5012e004177846bba037d90dfb472516 Mon Sep 17 00:00:00 2001 From: lumapu Date: Sun, 12 Feb 2023 12:46:00 +0100 Subject: [PATCH] reneabled instant start communication (once NTP is synced) #674 fix negative number in yield total correction --- src/CHANGES.md | 1 + src/app.cpp | 6 +++--- src/web/html/setup.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CHANGES.md b/src/CHANGES.md index e0951253..9274d8aa 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -4,6 +4,7 @@ ## 0.5.87 * fix yield total correction as module (inverter input) value #570 +* reneabled instant start communication (once NTP is synced) #674 ## 0.5.86 * prevent send devcontrol request during disabled night communication diff --git a/src/app.cpp b/src/app.cpp index 6d752fc5..7352589d 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -181,11 +181,11 @@ void app::tickNtpUpdate(void) { } // immediately start communicating - // @TODO: leads to reboot loops, everytime if there is no asynchronous function #674 - /*if(isOK && mSendFirst) { + // @TODO: leads to reboot loops? not sure #674 + if(isOK && mSendFirst) { mSendFirst = false; once(std::bind(&app::tickSend, this), 2, "senOn"); - }*/ + } mMqttReconnect = false; } diff --git a/src/web/html/setup.html b/src/web/html/setup.html index 6da7160c..efcf0adc 100644 --- a/src/web/html/setup.html +++ b/src/web/html/setup.html @@ -432,7 +432,7 @@ for(var j of [ ["ModPwr", "ch_max_power", "Max Module Power (Wp)", 4, "[0-9]+"], ["ModName", "ch_name", "Module Name", 16, null], - ["YieldCor", "ch_yield_cor", "Yield Total Correction [kWh]", 16, "[0-9]+"]]) { + ["YieldCor", "ch_yield_cor", "Yield Total Correction [kWh]", 16, "[0-9-]+"]]) { var cl = (re.test(obj["serial"])) ? null : ["hide"]; iv.appendChild(lbl(null, j[2], cl, "lbl" + id + j[0])); d = div([j[0]]);