mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 03:39:49 +03:00
Modbus speedup update2
This commit is contained in:
@@ -1101,6 +1101,7 @@ bool Item::resumeModbus()
|
||||
{
|
||||
|
||||
if (modbusBusy) return false;
|
||||
debugSerial<<F("Pushing MB: ");
|
||||
configLocked++;
|
||||
if (items) {
|
||||
aJsonObject * item = items->child;
|
||||
@@ -1110,13 +1111,15 @@ if (items) {
|
||||
if (it.isValid()) {
|
||||
switch (it.itemType){
|
||||
case CH_MODBUS:
|
||||
checkModbusRetry();
|
||||
bool res = it.checkModbusRetry();
|
||||
debugSerial<<it.itemArr->name<<F(":")<<res<<F("; ");
|
||||
}
|
||||
|
||||
} //isValid
|
||||
yield();
|
||||
item = item->next;
|
||||
} //if
|
||||
debugSerial<<endl;
|
||||
}
|
||||
configLocked--;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user