group channel status after halt & xoff fix

This commit is contained in:
2021-08-24 00:32:12 +03:00
parent 09fa78b0c8
commit 56a8c5c80b
3 changed files with 4 additions and 3 deletions

View File

@@ -880,6 +880,7 @@ int Item::Ctrl(itemCmd cmd, char* subItem, bool allowRecursion)
break;
case CMD_XON:
chActive=(isActive()>0);
if (!chActive) //if channel was'nt active before CMD_XON
{
cmd.loadItemDef(this);
@@ -894,6 +895,7 @@ int Item::Ctrl(itemCmd cmd, char* subItem, bool allowRecursion)
}
break;
case CMD_HALT:
chActive=(isActive()>0);
if (chActive) //if channel was active before CMD_HALT
{
cmd.Cmd(CMD_OFF);