More efficient pollConnections(...) in wireless multiboot async

This commit is contained in:
Rodrigo Alfonso 2025-01-26 10:00:23 -03:00
parent 12e41941c4
commit b6c2d7bd1a

View File

@ -952,7 +952,7 @@ class LinkWirelessMultiboot {
dynamicData.wait++;
if (dynamicData.wait >= 2) {
state = LISTENING;
pollConnections();
startOrKeepListening();
}
break;
}
@ -999,7 +999,8 @@ class LinkWirelessMultiboot {
state = HANDSHAKING_CLIENT_STEP1;
startHandshakeWith(lastClientNumber);
} else {
pollConnections();
state = STARTING;
dynamicData.wait = 0;
}
break;
}