mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
group restore/interim fix
This commit is contained in:
@@ -431,14 +431,15 @@ int Item::Ctrl(short cmd, short n, int *Parameters, boolean send, int suffixCode
|
|||||||
debugSerial<<F("<")<<Par[i]<<F(">");
|
debugSerial<<F("<")<<Par[i]<<F(">");
|
||||||
}
|
}
|
||||||
debugSerial<<F(")")<<endl;
|
debugSerial<<F(")")<<endl;
|
||||||
|
int itemCategory = itemType;
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
if (itemType == CH_GROUP && !send)
|
if (itemType == CH_GROUP && !send)
|
||||||
{
|
{
|
||||||
debugSerial<<F("Skip Grp")<<endl;
|
debugSerial<<F("Skip Grp")<<endl;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
int iaddr = getArg();
|
int iaddr = getArg();
|
||||||
int chActive =isActive();
|
int chActive =isActive();
|
||||||
|
|||||||
@@ -265,8 +265,9 @@ else
|
|||||||
|
|
||||||
Item item(itemName);
|
Item item(itemName);
|
||||||
if (item.isValid()) {
|
if (item.isValid()) {
|
||||||
|
/*
|
||||||
if (item.itemType == CH_GROUP && (lanStatus == RETAINING_COLLECTING))
|
if (item.itemType == CH_GROUP && (lanStatus == RETAINING_COLLECTING))
|
||||||
return; //Do not restore group channels - they consist not relevant data
|
return; //Do not restore group channels - they consist not relevant data */
|
||||||
item.Ctrl((char *)payload, !(lanStatus == RETAINING_COLLECTING),subItem);
|
item.Ctrl((char *)payload, !(lanStatus == RETAINING_COLLECTING),subItem);
|
||||||
} //valid item
|
} //valid item
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#define THERMO_OVERHEAT_CELSIUS 38.
|
#define THERMO_OVERHEAT_CELSIUS 38.
|
||||||
#define FM_OVERHEAT_CELSIUS 40.
|
#define FM_OVERHEAT_CELSIUS 40.
|
||||||
|
|
||||||
#define MIN_VOLUME 10
|
#define MIN_VOLUME 25
|
||||||
#define INIT_VOLUME 50
|
#define INIT_VOLUME 50
|
||||||
|
|
||||||
#define MAXFLASHSTR 32
|
#define MAXFLASHSTR 32
|
||||||
|
|||||||
Reference in New Issue
Block a user