bugfix reagard leap seconds in network time sync

This commit is contained in:
cyberman54 committed 2021-07-06 10:53:48 +02:00
1 parent f876edfe36
commit 335d646fe7
4 files changed
+9 -5

No files matched your search

+1
View File
@@ -10,6 +10,7 @@
#define TIME_SYNC_MAX_SEQNO 0xfe // threshold for wrap around time_sync_seqNo
#define TIME_SYNC_END_FLAG (TIME_SYNC_MAX_SEQNO + 1) // end of handshake marker
#define GPS_UTC_DIFF 315964800 // seconds diff between gps and utc epoch
#define LEAP_SECS_SINCE_GPSEPOCH 18 // state of 2021
enum timesync_t {
timesync_tx,