Skip to content

Commit 239cd74

Browse files
committed
TimeService: cosmetic changes
1 parent 79a2e5a commit 239cd74

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

src/utility/time/TimeService.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
file, You can obtain one at http://mozilla.org/MPL/2.0/.
99
*/
1010

11-
/**************************************************************************************
11+
/******************************************************************************
1212
* INCLUDE
13-
**************************************************************************************/
13+
******************************************************************************/
1414

1515
#include <time.h>
1616

@@ -33,9 +33,9 @@
3333
#include "RTCMillis.h"
3434
#endif
3535

36-
/**************************************************************************************
36+
/******************************************************************************
3737
* GLOBAL VARIABLES
38-
**************************************************************************************/
38+
******************************************************************************/
3939

4040
#if !defined(BOARD_HAS_HW_RTC)
4141
RTCMillis rtc;
@@ -45,15 +45,15 @@ RTCMillis rtc;
4545
RTCZero rtc;
4646
#endif
4747

48-
/**************************************************************************************
48+
/******************************************************************************
4949
* INTERNAL FUNCTION DECLARATION
50-
**************************************************************************************/
50+
******************************************************************************/
5151

5252
time_t cvt_time(char const * time);
5353

54-
/**************************************************************************************
54+
/******************************************************************************
5555
* RTC PRIVATE FUNCTION DEFINITION
56-
**************************************************************************************/
56+
******************************************************************************/
5757

5858
#if defined(BOARD_HAS_HW_RTC)
5959
#if defined(ARDUINO_ARCH_SAMD)
@@ -117,23 +117,23 @@ static inline unsigned long _getRTC() {
117117
}
118118
#endif
119119

120-
/**************************************************************************************
120+
/******************************************************************************
121121
* DEFINES
122-
**************************************************************************************/
122+
******************************************************************************/
123123

124124
#define EPOCH_AT_COMPILE_TIME cvt_time(__DATE__)
125125

126-
/**************************************************************************************
126+
/******************************************************************************
127127
* CONSTANTS
128-
**************************************************************************************/
128+
******************************************************************************/
129129

130130
/* Default NTP synch is scheduled each 24 hours from startup */
131131
static time_t const TIMESERVICE_NTP_SYNC_TIMEOUT_ms = DAYS * 1000;
132132
static time_t const EPOCH = 0;
133133

134-
/**************************************************************************************
134+
/******************************************************************************
135135
* CTOR/DTOR
136-
**************************************************************************************/
136+
******************************************************************************/
137137

138138
TimeServiceClass::TimeServiceClass()
139139
: _con_hdl(nullptr)
@@ -148,9 +148,9 @@ TimeServiceClass::TimeServiceClass()
148148

149149
}
150150

151-
/**************************************************************************************
151+
/******************************************************************************
152152
* PUBLIC MEMBER FUNCTIONS
153-
**************************************************************************************/
153+
******************************************************************************/
154154

155155
void TimeServiceClass::begin(ConnectionHandler * con_hdl)
156156
{
@@ -306,9 +306,9 @@ unsigned long TimeServiceClass::getTimeFromString(const String& input)
306306

307307
return mktime(&t);
308308
}
309-
/**************************************************************************************
309+
/******************************************************************************
310310
* PRIVATE MEMBER FUNCTIONS
311-
**************************************************************************************/
311+
******************************************************************************/
312312

313313
#if defined(HAS_NOTECARD) || defined(HAS_TCP)
314314
bool TimeServiceClass::connected()
@@ -382,9 +382,9 @@ unsigned long TimeServiceClass::getRTC()
382382
return _getRTC();
383383
}
384384

385-
/**************************************************************************************
385+
/******************************************************************************
386386
* INTERNAL FUNCTION DEFINITION
387-
**************************************************************************************/
387+
******************************************************************************/
388388

389389
time_t cvt_time(char const * time)
390390
{

src/utility/time/TimeService.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#ifndef ARDUINO_IOT_CLOUD_TIME_SERVICE_H_
1212
#define ARDUINO_IOT_CLOUD_TIME_SERVICE_H_
1313

14-
/**************************************************************************************
14+
/******************************************************************************
1515
* INCLUDE
16-
**************************************************************************************/
16+
******************************************************************************/
1717

1818
#include <AIoTC_Config.h>
1919
#include <Arduino_ConnectionHandler.h>
@@ -24,9 +24,9 @@
2424

2525
typedef unsigned long(*syncTimeFunctionPtr)(void);
2626

27-
/**************************************************************************************
27+
/******************************************************************************
2828
* CLASS DECLARATION
29-
**************************************************************************************/
29+
******************************************************************************/
3030

3131
class TimeServiceClass
3232
{

0 commit comments

Comments
 (0)