Browse Source

0.7.47

* fix boot loop #1140
pull/1148/head^2
lumapu 2 years ago
parent
commit
f28f314fcf
  1. 3
      src/CHANGES.md
  2. 7
      src/app.cpp
  3. 2
      src/defines.h
  4. 9
      src/web/html/index.html

3
src/CHANGES.md

@ -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`

7
src/app.cpp

@ -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) {

2
src/defines.h

@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 7
#define VERSION_PATCH 46
#define VERSION_PATCH 47
//-------------------------------------
typedef struct {

9
src/web/html/index.html

@ -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…
Cancel
Save