Modbus speedup update2

This commit is contained in:
2021-05-15 16:28:48 +03:00
parent bb65782ad0
commit 48a5e8fd31

View File

@@ -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;