mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-13 02:36:31 +02:00
fix issue with STA emiting the wrong event
This commit is contained in:
@ -358,7 +358,7 @@ uint8_t WiFiSTAClass::waitForConnectResult()
|
||||
return WL_DISCONNECTED;
|
||||
}
|
||||
int i = 0;
|
||||
while(status() >= WL_DISCONNECTED && i++ < 100) {
|
||||
while((!status() || status() >= WL_DISCONNECTED) && i++ < 100) {
|
||||
delay(100);
|
||||
}
|
||||
return status();
|
||||
|
Reference in New Issue
Block a user