summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-26 17:17:33 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-26 17:17:33 -0500
commit908a60348a2fc9457135bc88a425d716454335ea (patch)
tree9906039546e04debad5bfff709c114cf266844e0 /gpsd.h-tail
parent15885248f9631dc02b9a3c574b6b7672d3059ba4 (diff)
downloadgpsd-908a60348a2fc9457135bc88a425d716454335ea.tar.gz
RTCM[23] are single-packet formats, so they have reliable cycle detection.
All regression tests pass.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 7431f109..1b6f6a9c 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -54,7 +54,6 @@ typedef unsigned int speed_t;
enum isgpsstat_t {
ISGPS_NO_SYNC, ISGPS_SYNC, ISGPS_SKIP, ISGPS_MESSAGE,
};
-#define ISGPS_ERRLEVEL_BASE 5
#define RTCM_MAX (RTCM2_WORDS_MAX * sizeof(isgps30bits_t))
@@ -610,6 +609,8 @@ struct gps_device_t {
#define LOG_SPIN 6 /* logging for catching spin bugs */
#define LOG_RAW 7 /* raw low-level I/O */
+#define ISGPS_ERRLEVEL_BASE LOG_RAW
+
#define IS_HIGHEST_BIT(v,m) (v & ~((m<<1)-1))==0
/* here are the available GPS drivers */