mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-23 05:46:09 +02:00
Merge branch 'main' into dev
# Conflicts: # tools/esp8266/defines.h # tools/esp8266/hmSystem.h
This commit is contained in:
commit
c8a05efadc
33 changed files with 3714 additions and 17 deletions
tools/esp8266
|
@ -81,21 +81,26 @@ class Inverter {
|
|||
}
|
||||
|
||||
void getAssignment(void) {
|
||||
if(INV_TYPE_HM600 == type) {
|
||||
if(INV_TYPE_HM400 == type) {
|
||||
listLen = (uint8_t)(HM400_LIST_LEN);
|
||||
assign = (byteAssign_t*)hm400assignment;
|
||||
channels = 1;
|
||||
}
|
||||
else if(INV_TYPE_HM600 == type) {
|
||||
listLen = (uint8_t)(HM600_LIST_LEN);
|
||||
assign = (byteAssign_t*)hm600assignment;
|
||||
channels = 2;
|
||||
}
|
||||
else if(INV_TYPE_HM800 == p->type) {
|
||||
listLen = (uint8_t)(HM800_LIST_LEN);
|
||||
assign = (byteAssign_t*)hm800assignment;
|
||||
channels = 2;
|
||||
}
|
||||
else if(INV_TYPE_HM1200 == type) {
|
||||
listLen = (uint8_t)(HM1200_LIST_LEN);
|
||||
assign = (byteAssign_t*)hm1200assignment;
|
||||
channels = 4;
|
||||
}
|
||||
else if(INV_TYPE_HM400 == type) {
|
||||
listLen = (uint8_t)(HM400_LIST_LEN);
|
||||
assign = (byteAssign_t*)hm400assignment;
|
||||
channels = 1;
|
||||
}
|
||||
else {
|
||||
listLen = 0;
|
||||
channels = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue