Skip to content

Commit e64f223

Browse files
committed
0.8.142
* 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'
1 parent c44528e commit e64f223

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

src/CHANGES.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Development Changes
22

3+
## 0.8.142 - 2024-08-28
4+
* merge PR: add read_temp_c to system + mqtt #1739
5+
* improved sending limits of multiple inverters in very short timeframe #1726
6+
* don't show '0 dBm' once no inverter is available, changed to '-- dBm'
7+
38
## 0.8.141 - 2024-08-16
49
* switch AsyncWebserver to https://github.com/mathieucarbou/ESPAsyncWebServer
510
* fix missing translations to German #1717

src/defines.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//-------------------------------------
1414
#define VERSION_MAJOR 0
1515
#define VERSION_MINOR 8
16-
#define VERSION_PATCH 141
16+
#define VERSION_PATCH 142
1717
//-------------------------------------
1818
typedef struct {
1919
uint8_t ch;

src/hm/Communication.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ class Communication : public CommQueue<> {
2929
}
3030

3131
void addImportant(Inverter<> *iv, uint8_t cmd) {
32-
mState = States::RESET; // cancel current operation
32+
if(!mIsDevControl) // only reset communication once there is no other devcontrol command
33+
mState = States::RESET; // cancel current operation
34+
mIsDevControl = true;
3335
CommQueue::addImportant(iv, cmd);
3436
}
3537

@@ -77,6 +79,9 @@ class Communication : public CommQueue<> {
7779
mLocalBuf[i].len = 0;
7880
}
7981

82+
if(!q->isDevControl)
83+
mIsDevControl = false; // reset devcontrol flag
84+
8085
if(*mSerialDebug)
8186
mHeu.printStatus(q->iv);
8287
mHeu.getTxCh(q->iv);
@@ -1042,6 +1047,7 @@ class Communication : public CommQueue<> {
10421047
Heuristic mHeu;
10431048
uint32_t mLastEmptyQueueMillis = 0;
10441049
bool mPrintSequenceDuration = false;
1050+
bool mIsDevControl = false; // holds if current command is devcontrol
10451051
};
10461052

10471053
#endif /*__COMMUNICATION_H__*/

src/web/html/visualization.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,11 @@
208208
if(obj.rssi > -127) {
209209
if(obj.generation < 2)
210210
ageInfo += " (RSSI: " + ((obj.rssi == -64) ? "&gt;=" : "&lt;") + " -64&nbsp;dBm)";
211-
else
211+
else {
212+
if(obj.rssi == 0)
213+
obj.rssi = "--";
212214
ageInfo += " (RSSI: " + obj.rssi + "&nbsp;dBm)";
215+
}
213216
}
214217

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

0 commit comments

Comments
 (0)