mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
mapping constrain fix & more mbus relability
This commit is contained in:
@@ -731,7 +731,7 @@ if (itemParametersObj && itemParametersObj->type ==aJson_Object)
|
||||
debugSerial<<"MBUS: SEND "<<item->itemArr->name<<" ";
|
||||
sendRes = sendModbus(execObj->name,outValue);
|
||||
needResend = (savedValue != outValue->valueint);
|
||||
//while(needResend && mbusSlenceTimer && !isTimeOver(mbusSlenceTimer,millis(),100)) modbusIdle();
|
||||
while(needResend && mbusSlenceTimer && !isTimeOver(mbusSlenceTimer,millis(),100)) modbusIdle();
|
||||
}
|
||||
while (needResend); //repeat sending if target value changed while we're waited for mbus responce
|
||||
|
||||
|
||||
Reference in New Issue
Block a user