8000 Explain function of special PolledTimeout to the code reader · arduino-collections/Arduino@95b06ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 95b06ce

Browse files
committed
Explain function of special PolledTimeout to the code reader
1 parent f382fc9 commit 95b06ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ int8_t ESP8266WiFiSTAClass::waitForConnectResult(unsigned long timeoutLength) {
431431
if((wifi_get_opmode() & 1) == 0) {
432432
return WL_DISCONNECTED;
433433
}
434+
// if probing doesn't trip, this yields
434435
using oneShotYieldMs = esp8266::polledTimeout::timeoutTemplate<false, esp8266::polledTimeout::YieldPolicy::YieldOrSkip>;
435436 3E65
oneShotYieldMs timeout(timeoutLength); // number of milliseconds to wait before returning timeout error
436437
while(!timeout) {

0 commit comments

Comments
 (0)
0