Browse Source

0.7.46

* send loop skip disabled inverters fix
* print generated DTU SN to console
pull/1148/head
lumapu 1 year ago
parent
commit
69e2a63eab
  1. 2
      src/CHANGES.md
  2. 2
      src/app.cpp
  3. 5
      src/hm/hmRadio.h

2
src/CHANGES.md

@ -4,6 +4,8 @@
* removed `delay` from ePaper
* started improvements of `/system`
* fix LEDs to check all configured inverters
* send loop skip disabled inverters fix
* print generated DTU SN to console
## 0.7.45 - 2023-08-29
* change ePaper text to symbols PR #1131

2
src/app.cpp

@ -453,10 +453,12 @@ void app::tickSend(void) {
int8_t maxLoop = MAX_NUM_INVERTERS;
Inverter<> *iv = mSys.getInverterByPos(mSendLastIvId);
do {
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) {

5
src/hm/hmRadio.h

@ -117,8 +117,9 @@ class HmRadio {
if(mNrf24.isChipConnected()) {
DPRINTLN(DBG_INFO, F("Radio Config:"));
mNrf24.printPrettyDetails();
}
else
DPRINT(DBG_INFO, F("DTU_SN: 0x"));
DBGPRINTLN(String(DTU_RADIO_ID, HEX));
} else
DPRINTLN(DBG_WARN, F("WARNING! your NRF24 module can't be reached, check the wiring"));
}

Loading…
Cancel
Save