fixed timeout wifi

pico-mitt
alanbjohnston 3 years ago committed by GitHub
parent d2f8d005fe
commit 7fc72db366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4560,7 +4560,7 @@ void prompt_for_input() {
// WiFi.begin(ssid2, pass2);
WiFi.begin(ssid, pass);
while ((WiFi.status() != WL_CONNECTED) || ((millis() - elapsed_timer) > 10000)) {
while ((WiFi.status() != WL_CONNECTED) && ((millis() - elapsed_timer) < 10000)) {
Serial.print(".");
delay(500);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.