summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-03-28 16:13:47 -0700
committerGary E. Miller <gem@rellim.com>2016-03-28 16:13:47 -0700
commita16867a63e93c4004638859714a70cb4300f5e63 (patch)
tree789c77f9be4e4b143f215a072bf006ef38d6bc0c
parent1456c9f50e718a394f2b633cf0773f3fd792cdaa (diff)
downloadgpsd-a16867a63e93c4004638859714a70cb4300f5e63.tar.gz
Bump NMEA_MAX up to 102. Skytraq needs 100.
-rwxr-xr-xgpscat3
-rw-r--r--gpsd.h-tail7
2 files changed, 6 insertions, 4 deletions
diff --git a/gpscat b/gpscat
index e3f265d8..e3342f3a 100755
--- a/gpscat
+++ b/gpscat
@@ -11,7 +11,8 @@ import os, sys, termios, socket, select, getopt, curses.ascii
import gps.packet as sniffer
# The spec says 82, but some receivers (TN-200, GSW 2.3.2) output 86 characters
-NMEA_MAX = 86
+# the Skyrtaq S2525F8 emits 100 chars
+NMEA_MAX = 102
# Lowest debug level at which packet getter begins to emit messages, minus one
BASELEVEL = sniffer.LOG_IO
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 490a5930..dff63d62 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -74,10 +74,11 @@
/*
* For NMEA-conforming receivers this is supposed to be 82, but
* some receivers (TN-200, GSW 2.3.2) emit oversized sentences.
- * The current hog champion is the Trimble BX-960 receiver, which
- * emits a 91-character GGA message.
+ * The Trimble BX-960 receiver emits a 91-character GGA message.
+ * The current hog champion is the Skytraq S2525F8 which emits
+ * a 100-character PSTI message.
*/
-#define NMEA_MAX 91 /* max length of NMEA sentence */
+#define NMEA_MAX 102 /* max length of NMEA sentence */
#define NMEA_BIG_BUF (2*NMEA_MAX+1) /* longer than longest NMEA sentence */
/* a few bits of ISGPS magic */