retry if modbus command failed

*/set topics don't invoke OFF/ON anymore
This commit is contained in:
2019-11-09 03:13:41 +03:00
parent a3e0e70aec
commit f57d47dc2b
3 changed files with 29 additions and 18 deletions

View File

@@ -182,7 +182,7 @@ debugSerial<<F("Forced execution");
case S_SET:
if (!Parameters || n==0) return 0;
item->setVal(st=Parameters[0]); //Store
if (toExecute)
if (!suffixCode)
{
if (chActive>0 && !st) item->setCmd(CMD_OFF);
if (chActive==0 && st) item->setCmd(CMD_ON);