mirror of
https://github.com/anklimov/lighthub
synced 2025-12-17 09:09:51 +03:00
Critical AC fix
Some additional commands compatibility for generic driver
This commit is contained in:
@@ -496,7 +496,12 @@ int Item::Ctrl(short cmd, short n, int *Parameters, boolean send, int suffixCode
|
||||
|
||||
}
|
||||
|
||||
if (driver) return driver->Ctrl(cmd, n, Parameters, send, suffixCode, subItem);
|
||||
if (driver)
|
||||
{
|
||||
int res = driver->Ctrl(cmd, n, Parameters, send, suffixCode, subItem);
|
||||
setCmd(cmd);
|
||||
return res;
|
||||
}
|
||||
// Legacy code
|
||||
bool toExecute = (chActive>0); //if channel is already active - unconditionally propogate changes
|
||||
switch (cmd) {
|
||||
|
||||
Reference in New Issue
Block a user