Skip to content

Commit 9b96f53

Browse files
authored
Fix typo in mode timeout loop (esp8266#6801)
Fix typo to make timeout 1s instead if 1ms, as originally intended.
1 parent bbfe2c2 commit 9b96f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ bool ESP8266WiFiGenericClass::mode(WiFiMode_t m, WiFiState* state) {
443443
//tasks to wait correctly.
444444
constexpr unsigned int timeoutValue = 1000; //1 second
445445
if(can_yield()) {
446-
using oneShot = esp8266::polledTimeout::oneShotFastUs;
446+
using oneShot = esp8266::polledTimeout::oneShotFastMs;
447447
oneShot timeout(timeoutValue);
448448
while(wifi_get_opmode() != (uint8) m && !timeout)
449449
delay(5);

0 commit comments

Comments
 (0)