mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Explain function of special PolledTimeout to the code reader
This commit is contained in:
@ -431,6 +431,7 @@ int8_t ESP8266WiFiSTAClass::waitForConnectResult(unsigned long timeoutLength) {
|
||||
if((wifi_get_opmode() & 1) == 0) {
|
||||
return WL_DISCONNECTED;
|
||||
}
|
||||
// if probing doesn't trip, this yields
|
||||
using oneShotYieldMs = esp8266::polledTimeout::timeoutTemplate<false, esp8266::polledTimeout::YieldPolicy::YieldOrSkip>;
|
||||
oneShotYieldMs timeout(timeoutLength); // number of milliseconds to wait before returning timeout error
|
||||
while(!timeout) {
|
||||
|
Reference in New Issue
Block a user