mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-29 10:16:21 +02:00
parent
6b721cbe0c
commit
f28f314fcf
4 changed files with 12 additions and 9 deletions
|
@ -1,5 +1,8 @@
|
|||
# Development Changes
|
||||
|
||||
## 0.7.47 - 2023-09-07
|
||||
* fix boot loop #1140
|
||||
|
||||
## 0.7.46 - 2023-09-04
|
||||
* removed `delay` from ePaper
|
||||
* started improvements of `/system`
|
||||
|
|
|
@ -453,12 +453,15 @@ void app::tickSend(void) {
|
|||
|
||||
int8_t maxLoop = MAX_NUM_INVERTERS;
|
||||
Inverter<> *iv = mSys.getInverterByPos(mSendLastIvId);
|
||||
do {
|
||||
while(maxLoop > 0) {
|
||||
do {
|
||||
mSendLastIvId = ((MAX_NUM_INVERTERS - 1) == mSendLastIvId) ? 0 : mSendLastIvId + 1;
|
||||
iv = mSys.getInverterByPos(mSendLastIvId);
|
||||
} while ((NULL == iv) && ((maxLoop--) > 0));
|
||||
} while((!iv->config->enabled) && (maxLoop > 0));
|
||||
if(NULL != iv)
|
||||
if(iv->config->enabled)
|
||||
break;
|
||||
}
|
||||
|
||||
if (NULL != iv) {
|
||||
if (iv->config->enabled) {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
//-------------------------------------
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 7
|
||||
#define VERSION_PATCH 46
|
||||
#define VERSION_PATCH 47
|
||||
|
||||
//-------------------------------------
|
||||
typedef struct {
|
||||
|
|
|
@ -126,16 +126,13 @@
|
|||
icon = iconWarn;
|
||||
cl = "icon-warn";
|
||||
avail = "disabled";
|
||||
}
|
||||
else if(false == i["is_avail"]) {
|
||||
} else if(false == i["is_avail"]) {
|
||||
icon = iconInfo;
|
||||
cl = "icon-info";
|
||||
avail = "not yet available";
|
||||
}
|
||||
else if(0 == i["ts_last_success"]) {
|
||||
} else if(0 == i["ts_last_success"]) {
|
||||
avail = "available but no data was received until now";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
avail = "available and is ";
|
||||
if(false == i["is_producing"])
|
||||
avail += "not ";
|
||||
|
|
Loading…
Add table
Reference in a new issue