8
8
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
9
*/
10
10
11
- /* *************************************************************************************
11
+ /* *****************************************************************************
12
12
* INCLUDE
13
- ************************************************************************************* * /
13
+ ******************************************************************************/
14
14
15
15
#include < time.h>
16
16
33
33
#include " RTCMillis.h"
34
34
#endif
35
35
36
- /* *************************************************************************************
36
+ /* *****************************************************************************
37
37
* GLOBAL VARIABLES
38
- ************************************************************************************* * /
38
+ ******************************************************************************/
39
39
40
40
#if !defined(BOARD_HAS_HW_RTC)
41
41
RTCMillis rtc;
@@ -45,15 +45,15 @@ RTCMillis rtc;
45
45
RTCZero rtc;
46
46
#endif
47
47
48
- /* *************************************************************************************
48
+ /* *****************************************************************************
49
49
* INTERNAL FUNCTION DECLARATION
50
- ************************************************************************************* * /
50
+ ******************************************************************************/
51
51
52
52
time_t cvt_time (char const * time);
53
53
54
- /* *************************************************************************************
54
+ /* *****************************************************************************
55
55
* RTC PRIVATE FUNCTION DEFINITION
56
- ************************************************************************************* * /
56
+ ******************************************************************************/
57
57
58
58
#if defined(BOARD_HAS_HW_RTC)
59
59
#if defined(ARDUINO_ARCH_SAMD)
@@ -117,23 +117,23 @@ static inline unsigned long _getRTC() {
117
117
}
118
118
#endif
119
119
120
- /* *************************************************************************************
120
+ /* *****************************************************************************
121
121
* DEFINES
122
- ************************************************************************************* * /
122
+ ******************************************************************************/
123
123
124
124
#define EPOCH_AT_COMPILE_TIME cvt_time (__DATE__)
125
125
126
- /* *************************************************************************************
126
+ /* *****************************************************************************
127
127
* CONSTANTS
128
- ************************************************************************************* * /
128
+ ******************************************************************************/
129
129
130
130
/* Default NTP synch is scheduled each 24 hours from startup */
131
131
static time_t const TIMESERVICE_NTP_SYNC_TIMEOUT_ms = DAYS * 1000;
132
132
static time_t const EPOCH = 0 ;
133
133
134
- /* *************************************************************************************
134
+ /* *****************************************************************************
135
135
* CTOR/DTOR
136
- ************************************************************************************* * /
136
+ ******************************************************************************/
137
137
138
138
TimeServiceClass::TimeServiceClass ()
139
139
: _con_hdl(nullptr )
@@ -148,9 +148,9 @@ TimeServiceClass::TimeServiceClass()
148
148
149
149
}
150
150
151
- /* *************************************************************************************
151
+ /* *****************************************************************************
152
152
* PUBLIC MEMBER FUNCTIONS
153
- ************************************************************************************* * /
153
+ ******************************************************************************/
154
154
155
155
void TimeServiceClass::begin (ConnectionHandler * con_hdl)
156
156
{
@@ -306,9 +306,9 @@ unsigned long TimeServiceClass::getTimeFromString(const String& input)
306
306
307
307
return mktime (&t);
308
308
}
309
- /* *************************************************************************************
309
+ /* *****************************************************************************
310
310
* PRIVATE MEMBER FUNCTIONS
311
- ************************************************************************************* * /
311
+ ******************************************************************************/
312
312
313
313
#if defined(HAS_NOTECARD) || defined(HAS_TCP)
314
314
bool TimeServiceClass::connected ()
@@ -382,9 +382,9 @@ unsigned long TimeServiceClass::getRTC()
382
382
return _getRTC ();
383
383
}
384
384
385
- /* *************************************************************************************
385
+ /* *****************************************************************************
386
386
* INTERNAL FUNCTION DEFINITION
387
- ************************************************************************************* * /
387
+ ******************************************************************************/
388
388
389
389
time_t cvt_time (char const * time)
390
390
{
0 commit comments