improved records in hmInverter.h

This commit is contained in:
lumapu 2022-09-12 22:57:36 +02:00
parent 6bd7e01f1a
commit 56b747709a
9 changed files with 316 additions and 290 deletions

View file

@ -63,14 +63,8 @@ class HmSystem {
uint8_t len = (uint8_t)strlen(name);
strncpy(p->name, name, (len > MAX_NAME_LENGTH) ? MAX_NAME_LENGTH : len);
if(NULL == p->assign) {
DPRINT(DBG_ERROR, F("no assignment for type found!"));
return NULL;
}
else {
mNumInv ++;
return p;
}
mNumInv ++;
return p;
}
INVERTERTYPE *findInverter(uint8_t buf[]) {