File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 19
19
* INCLUDE
20
20
**************************************************************************************/
21
21
22
- #include " TimeService.h "
22
+ #include < AIoTC_Config.h >
23
23
24
24
#include < time.h>
25
-
25
+ # include " TimeService.h "
26
26
#include " NTPUtils.h"
27
27
28
+ #ifdef ARDUINO_ARCH_SAMD
29
+ #include < RTCZero.h>
30
+ #endif
31
+
32
+ #ifdef ARDUINO_ARCH_MBED
33
+ #include < mbed_rtc_time.h>
34
+ #endif
35
+
28
36
#ifdef ARDUINO_ARCH_ESP8266
29
37
#include " RTCMillis.h"
30
38
#endif
@@ -288,9 +296,7 @@ bool TimeService::connected()
288
296
289
297
unsigned long TimeService::getRemoteTime ()
290
298
{
291
- #include " ../../AIoTC_Config.h"
292
299
#ifndef HAS_LORA
293
-
294
300
if (connected ()) {
295
301
/* At first try to see if a valid time can be obtained
296
302
* using the network time available via the connection
Original file line number Diff line number Diff line change 24
24
25
25
#include < Arduino_ConnectionHandler.h>
26
26
27
- #ifdef ARDUINO_ARCH_SAMD
28
- #include < RTCZero.h>
29
- #endif
30
-
31
- #ifdef ARDUINO_ARCH_MBED
32
- #include < mbed_rtc_time.h>
33
- #endif
34
-
35
27
/* *************************************************************************************
36
28
* CLASS DECLARATION
37
29
**************************************************************************************/
You can’t perform that action at this time.
0 commit comments