Skip to content

Commit bdca6b8

Browse files
committed
Fix crash at startup
1 parent f8728f8 commit bdca6b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utility/time/TimeService.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,18 @@ void renesas_setRTC(unsigned long time);
9696
unsigned long renesas_getRTC();
9797
#endif
9898

99+
/**************************************************************************************
100+
* DEFINES
101+
**************************************************************************************/
102+
103+
#define EPOCH_AT_COMPILE_TIME cvt_time(__DATE__)
104+
99105
/**************************************************************************************
100106
* CONSTANTS
101107
**************************************************************************************/
102108

103109
/* Default NTP synch is scheduled each 24 hours from startup */
104110
static time_t const TIMESERVICE_NTP_SYNC_TIMEOUT_ms = DAYS * 1000;
105-
static time_t const EPOCH_AT_COMPILE_TIME = cvt_time(__DATE__);
106111
static time_t const EPOCH = 0;
107112

108113
/**************************************************************************************

0 commit comments

Comments
 (0)