mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-16 18:36:10 +02:00
improved records in hmInverter.h
This commit is contained in:
parent
6bd7e01f1a
commit
56b747709a
9 changed files with 316 additions and 290 deletions
|
@ -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[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue