Skip to content

Commit

Permalink
0.8.142
Browse files Browse the repository at this point in the history
* 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'
  • Loading branch information
lumapu committed Aug 28, 2024
1 parent c44528e commit e64f223
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 7 additions & 1 deletion src/hm/Communication.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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__*/
5 changes: 4 additions & 1 deletion src/web/html/visualization.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@
if(obj.rssi > -127) {
if(obj.generation < 2)
ageInfo += " (RSSI: " + ((obj.rssi == -64) ? "&gt;=" : "&lt;") + " -64&nbsp;dBm)";
else
else {
if(obj.rssi == 0)
obj.rssi = "--";
ageInfo += " (RSSI: " + obj.rssi + "&nbsp;dBm)";
}
}

return ml("div", {class: "mb-5"}, [
Expand Down

0 comments on commit e64f223

Please sign in to comment.