1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-07 06:01:35 +03:00

Fix typo in mode timeout loop (#6801)

Fix typo to make timeout 1s instead if 1ms, as originally intended.
This commit is contained in:
Develo
2019-11-19 01:27:10 -03:00
committed by GitHub
parent bbfe2c2035
commit 9b96f53778

View File

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