We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da038c commit 1ebdfacCopy full SHA for 1ebdfac
src/WiFi.cpp
@@ -995,7 +995,7 @@ uint32_t WiFiClass::getTime()
995
m2m_wifi_handle_events(NULL);
996
}
997
998
- time_t t = -1;
+ time_t t = 0;
999
1000
if (_resolve == 0 && systemTime.u16Year > 0) {
1001
struct tm tm;
@@ -1013,10 +1013,6 @@ uint32_t WiFiClass::getTime()
1013
1014
_resolve = 0;
1015
1016
- if (t == (time_t)-1) {
1017
- t = 0;
1018
- }
1019
-
1020
return t;
1021
#endif
1022
0 commit comments