mirror of
https://github.com/anklimov/lighthub
synced 2025-12-11 06:09:50 +03:00
Refactoring #4 (untested)
This commit is contained in:
@@ -216,7 +216,7 @@ int out_Motor::Ctrl(itemCmd cmd, char* subItem)
|
||||
int chActive = item->isActive();
|
||||
bool toExecute = (chActive>0);
|
||||
int suffixCode = cmd.getSuffix();
|
||||
itemCmd st(ST_PERCENTS);
|
||||
itemCmd st(ST_PERCENTS,CMD_VOID);
|
||||
if (cmd.isCommand() && !suffixCode) suffixCode=S_CMD; //if some known command find, but w/o correct suffix - got it
|
||||
|
||||
item->setFlag(ACTION_NEEDED);
|
||||
|
||||
Reference in New Issue
Block a user