* main in app integriert, Zwischenstand

This commit is contained in:
lumapu 2022-08-13 02:15:56 +02:00
parent c6e3cd39ba
commit ccb9fb537d
7 changed files with 759 additions and 603 deletions

View file

@ -86,9 +86,9 @@ class HmSystem {
return NULL;
}
INVERTERTYPE *getInverterByPos(uint8_t pos) {
INVERTERTYPE *getInverterByPos(uint8_t pos, bool check = true) {
DPRINTLN(DBG_VERBOSE, F("hmSystem.h:getInverterByPos"));
if(mInverter[pos].serial.u64 != 0ULL)
if((mInverter[pos].serial.u64 != 0ULL) || false == check)
return &mInverter[pos];
else
return NULL;