mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-30 10:46:24 +02:00
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'
This commit is contained in:
parent
c44528ed73
commit
e64f22336c
4 changed files with 17 additions and 3 deletions
|
@ -1,5 +1,10 @@
|
||||||
# Development Changes
|
# 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
|
## 0.8.141 - 2024-08-16
|
||||||
* switch AsyncWebserver to https://github.com/mathieucarbou/ESPAsyncWebServer
|
* switch AsyncWebserver to https://github.com/mathieucarbou/ESPAsyncWebServer
|
||||||
* fix missing translations to German #1717
|
* fix missing translations to German #1717
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 8
|
#define VERSION_MINOR 8
|
||||||
#define VERSION_PATCH 141
|
#define VERSION_PATCH 142
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t ch;
|
uint8_t ch;
|
||||||
|
|
|
@ -29,7 +29,9 @@ class Communication : public CommQueue<> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void addImportant(Inverter<> *iv, uint8_t cmd) {
|
void addImportant(Inverter<> *iv, uint8_t cmd) {
|
||||||
|
if(!mIsDevControl) // only reset communication once there is no other devcontrol command
|
||||||
mState = States::RESET; // cancel current operation
|
mState = States::RESET; // cancel current operation
|
||||||
|
mIsDevControl = true;
|
||||||
CommQueue::addImportant(iv, cmd);
|
CommQueue::addImportant(iv, cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +79,9 @@ class Communication : public CommQueue<> {
|
||||||
mLocalBuf[i].len = 0;
|
mLocalBuf[i].len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!q->isDevControl)
|
||||||
|
mIsDevControl = false; // reset devcontrol flag
|
||||||
|
|
||||||
if(*mSerialDebug)
|
if(*mSerialDebug)
|
||||||
mHeu.printStatus(q->iv);
|
mHeu.printStatus(q->iv);
|
||||||
mHeu.getTxCh(q->iv);
|
mHeu.getTxCh(q->iv);
|
||||||
|
@ -1042,6 +1047,7 @@ class Communication : public CommQueue<> {
|
||||||
Heuristic mHeu;
|
Heuristic mHeu;
|
||||||
uint32_t mLastEmptyQueueMillis = 0;
|
uint32_t mLastEmptyQueueMillis = 0;
|
||||||
bool mPrintSequenceDuration = false;
|
bool mPrintSequenceDuration = false;
|
||||||
|
bool mIsDevControl = false; // holds if current command is devcontrol
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /*__COMMUNICATION_H__*/
|
#endif /*__COMMUNICATION_H__*/
|
||||||
|
|
|
@ -208,9 +208,12 @@
|
||||||
if(obj.rssi > -127) {
|
if(obj.rssi > -127) {
|
||||||
if(obj.generation < 2)
|
if(obj.generation < 2)
|
||||||
ageInfo += " (RSSI: " + ((obj.rssi == -64) ? ">=" : "<") + " -64 dBm)";
|
ageInfo += " (RSSI: " + ((obj.rssi == -64) ? ">=" : "<") + " -64 dBm)";
|
||||||
else
|
else {
|
||||||
|
if(obj.rssi == 0)
|
||||||
|
obj.rssi = "--";
|
||||||
ageInfo += " (RSSI: " + obj.rssi + " dBm)";
|
ageInfo += " (RSSI: " + obj.rssi + " dBm)";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ml("div", {class: "mb-5"}, [
|
return ml("div", {class: "mb-5"}, [
|
||||||
ml("div", {class: "row p-1 ts-h mx-2"},
|
ml("div", {class: "row p-1 ts-h mx-2"},
|
||||||
|
|
Loading…
Add table
Reference in a new issue