File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,9 @@ unsigned long esp8266_getRTC();
89
89
* CONSTANTS
90
90
**************************************************************************************/
91
91
92
- # ifdef ARDUINO_ARCH_ESP8266
93
- static unsigned long const AIOT_TIMESERVICE_ESP8266_NTP_SYNC_TIMEOUT_ms = 86400000 ;
94
- # endif
92
+ /* Default NTP synch is scheduled each 24 hours from startup */
93
+ static unsigned long const AIOT_TIMESERVICE_NTP_SYNC_TIMEOUT_ms = 86400000 ;
94
+
95
95
static time_t const EPOCH_AT_COMPILE_TIME = cvt_time(__DATE__);
96
96
static time_t const EPOCH = 0 ;
97
97
@@ -105,11 +105,7 @@ TimeService::TimeService()
105
105
, _is_tz_configured(false )
106
106
, _timezone_offset(0 )
107
107
, _timezone_dst_until(0 )
108
- #ifdef ARDUINO_ARCH_ESP8266
109
108
, _last_ntp_sync_tick(0 )
110
- , _last_rtc_update_tick(0 )
111
- , _rtc(0 )
112
- #endif
113
109
{
114
110
115
111
}
Original file line number Diff line number Diff line change @@ -52,11 +52,7 @@ class TimeService
52
52
bool _is_tz_configured;
53
53
long _timezone_offset;
54
54
unsigned long _timezone_dst_until;
55
- #ifdef ARDUINO_ARCH_ESP8266
56
55
unsigned long _last_ntp_sync_tick;
57
- unsigned long _last_rtc_update_tick;
58
- unsigned long _rtc;
59
- #endif
60
56
61
57
unsigned long getRemoteTime ();
62
58
bool connected ();
You can’t perform that action at this time.
0 commit comments