Skip to content

Commit a873bb7

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 e73eaf4 commit a873bb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Arduino_WiFiConnectionHandler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,10 +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");
181+
#else
180182
changeConnectionState(NetworkConnectionState::CONNECTED);
181-
Debug.print(DBG_VERBOSE, "NetworkConnectionState::GETTIME");
182183
#endif
183184
}
184185
break;

0 commit comments

Comments
 (0)