Package: gpsd
Version: 2.33-4
Severity: normal
Tags: patch
Hi,
If you try to use a GPS device which reports both ZDA and GLL (but no
year in RMC), you'll get
can't use GGA/GGL time until after ZDA or RMC has supplied a year.
This is due to a bug in the GLL code (yes, it's GLL, even if the error
message says "GGL" :-) ), easily fixed with the given trivial patch:
diff -ur gpsd-2.33/nmea_parse.c gpsd-2.33.patched/nmea_parse.c
--- gpsd-2.33/nmea_parse.c 2006-06-09 14:36:07.000000000 +0200
+++ gpsd-2.33.patched/nmea_parse.c 2007-02-07 22:41:55.000000000 +0100
@@ -200,7 +200,7 @@
mask = 0;
merge_hhmmss(field[5], session);
- if (session->driver.nmea.date.tm_year != 0)
+ if (session->driver.nmea.date.tm_year == 0)
gpsd_report(1, "can't use GGA/GGL time until after ZDA or RMC has
supplied a year.\n");
else {
mask = TIME_SET;
Interestingly, code like this exists for the GGA path as well, but is
correct there.
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.1
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Versions of packages gpsd depends on:
ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy
ii libc6 2.3.6.ds1-11 GNU C Library: Shared libraries
ii libdbus-1-3 1.0.2-1 simple interprocess messaging syst
ii libgcc1 1:4.1.1-21 GCC support library
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii lsb-base 3.1-23 Linux Standard Base 3.1 init scrip
ii netbase 4.29 Basic TCP/IP networking system
Versions of packages gpsd recommends:
ii gpsd-clients 2.33-4 clients for the GPS daemon
ii python 2.4.4-2 An interactive high-level object-o
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]