Skip to content

Commit 578c307

Browse files
committed
Bugfix - If we are not on ESP8266 we need to get out of the GETTIME state (and not being stuck there forever)
1 parent 18334b9 commit 578c307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Arduino_WiFiConnectionHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ void WiFiConnectionHandler::update() {
175175
}
176176
break;
177177
case NetworkConnectionState::GETTIME: {
178+
Debug.print(DBG_VERBOSE, "NetworkConnectionState::GETTIME");
178179
#if defined(ARDUINO_ESP8266_ESP12) || defined(ARDUINO_ARCH_ESP32) || defined(ESP8266)
179180
configTime(0, 0, "pool.ntp.org", "time.nist.gov");
180-
changeConnectionState(NetworkConnectionState::CONNECTED);
181-
Debug.print(DBG_VERBOSE, "NetworkConnectionState::GETTIME");
182181
#endif
182+
changeConnectionState(NetworkConnectionState::CONNECTED);
183183
}
184184
break;
185185
case NetworkConnectionState::DISCONNECTING: {

0 commit comments

Comments
 (0)