diff --git a/src/CHANGES.md b/src/CHANGES.md index 254256e7..1c06a1e8 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,5 +1,10 @@ # Development Changes +## 0.8.142 - 2024-08-28 +* merge PR: add read_temp_c to system + mqtt #1739 +* improved sending limits of multiple inverters in very short timeframe #1726 +* don't show '0 dBm' once no inverter is available, changed to '-- dBm' + ## 0.8.141 - 2024-08-16 * switch AsyncWebserver to https://github.com/mathieucarbou/ESPAsyncWebServer * fix missing translations to German #1717 diff --git a/src/defines.h b/src/defines.h index 341ed04f..2a0646be 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 8 -#define VERSION_PATCH 141 +#define VERSION_PATCH 142 //------------------------------------- typedef struct { uint8_t ch; diff --git a/src/hm/Communication.h b/src/hm/Communication.h index 3192c513..e5a18858 100644 --- a/src/hm/Communication.h +++ b/src/hm/Communication.h @@ -29,7 +29,9 @@ class Communication : public CommQueue<> { } void addImportant(Inverter<> *iv, uint8_t cmd) { - mState = States::RESET; // cancel current operation + if(!mIsDevControl) // only reset communication once there is no other devcontrol command + mState = States::RESET; // cancel current operation + mIsDevControl = true; CommQueue::addImportant(iv, cmd); } @@ -77,6 +79,9 @@ class Communication : public CommQueue<> { mLocalBuf[i].len = 0; } + if(!q->isDevControl) + mIsDevControl = false; // reset devcontrol flag + if(*mSerialDebug) mHeu.printStatus(q->iv); mHeu.getTxCh(q->iv); @@ -1042,6 +1047,7 @@ class Communication : public CommQueue<> { Heuristic mHeu; uint32_t mLastEmptyQueueMillis = 0; bool mPrintSequenceDuration = false; + bool mIsDevControl = false; // holds if current command is devcontrol }; #endif /*__COMMUNICATION_H__*/ diff --git a/src/web/html/visualization.html b/src/web/html/visualization.html index 507a6f9f..c04425d9 100644 --- a/src/web/html/visualization.html +++ b/src/web/html/visualization.html @@ -208,8 +208,11 @@ if(obj.rssi > -127) { if(obj.generation < 2) ageInfo += " (RSSI: " + ((obj.rssi == -64) ? ">=" : "<") + " -64 dBm)"; - else + else { + if(obj.rssi == 0) + obj.rssi = "--"; ageInfo += " (RSSI: " + obj.rssi + " dBm)"; + } } return ml("div", {class: "mb-5"}, [