fix for negative time diffs

This commit is contained in:
cyberman54 committed 2021-07-20 13:24:16 +02:00
1 parent d33213b20a
commit 5b28fe03ed
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@
#define TIME_SYNC_FIXUP 16 // compensation for processing time [milliseconds]
#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
#define GPS_UTC_DIFF 315964800UL // seconds diff between gps and utc epoch
#define LEAP_SECS_SINCE_GPSEPOCH 18UL // state of 2021
enum timesync_t {
timesync_tx,