summaryrefslogtreecommitdiff
path: root/packet_states.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2006-09-26 08:15:29 +0000
committerGary E. Miller <gem@rellim.com>2006-09-26 08:15:29 +0000
commitfb6b7a4af86f3542754b4f328a08eab4cb316fa8 (patch)
treea65ba373f8d6171f760421a1051e8db8f4ea883b /packet_states.h
parent83bad9af14a0083bf2a1a5a63314470877bb649e (diff)
downloadgpsd-fb6b7a4af86f3542754b4f328a08eab4cb316fa8.tar.gz
Garmin serial binary is very similar to TSIP binary.
This modifies the TSIP binary detection to also detect Garmin serial binary. Nothing is done yet with the packet after it is identified.
Diffstat (limited to 'packet_states.h')
-rw-r--r--packet_states.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/packet_states.h b/packet_states.h
index 29d8802a..8fad28f0 100644
--- a/packet_states.h
+++ b/packet_states.h
@@ -85,16 +85,19 @@
* be recognized, that will be preferred.
*/
-#ifdef TSIP_ENABLE
+#if defined(TSIP_ENABLE) || defined(GARMIN_ENABLE)
TSIP_LEADER, /* a DLE after having seen TSIP data */
TSIP_PAYLOAD, /* we're in TSIP payload */
TSIP_DLE, /* we've seen a DLE in TSIP payload */
TSIP_RECOGNIZED, /* found end of the TSIP packet */
-#endif /* TSIP_ENABLE */
+ GARMIN_RECOGNIZED, /* found end of Garmin packet */
+#endif /* TSIP_ENABLE GARMIN_ENABLE */
#ifdef RTCM104_ENABLE
RTCM_SYNC_STATE, /* we have sync lock */
RTCM_SKIP_STATE, /* we have sync lock, but this character is bad */
RTCM_RECOGNIZED, /* we have an RTCM packet */
#endif /* RTCM104_ENABLE */
+
+
/* end of packet_states.h */