diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-01-22 09:04:02 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-01-22 09:04:02 -0500 |
commit | 35b75b84ddc3644c160eaa64178c3545a9a3714a (patch) | |
tree | e1a5e2bfc1a3ed9f69b030884c70b2f940c959d6 /timebase.c | |
parent | 9d58b25c80f26eaea292154b267d13f245d69c9c (diff) | |
download | gpsd-35b75b84ddc3644c160eaa64178c3545a9a3714a.tar.gz |
Re-enable week rollover check. All regression tests pass.
Diffstat (limited to 'timebase.c')
-rw-r--r-- | timebase.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -190,19 +190,17 @@ timestamp_t gpsd_gpstime_resolve(/*@in@*/struct gps_device_t *session, { timestamp_t t; -#ifdef __UNUSED__ /* * This code detects and compensates for week counter rollovers that * happen while gpsd is running. It will not save you if there was a * rollover that confused the receiver before gpsd booted up. It *will* * work even when Block IIF satellites increase the week counter width - * to 13 bits, + * to 13 bits. */ if ((int)week < (session->context->gps_week & 0x3ff)) { gpsd_report(LOG_INF, "GPS week 10-bit rollover detected.\n"); ++session->context->rollovers; } -#endif /* __UNUSED__ */ /* * This guard copes with both conventional GPS weeks and the "extended" |