From fb6b7a4af86f3542754b4f328a08eab4cb316fa8 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 26 Sep 2006 08:15:29 +0000 Subject: 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. --- packet_states.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'packet_states.h') 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 */ -- cgit v1.2.1