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