From 033735841667900a4646e3749f23149b08e6e61e Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Thu, 11 Jan 2007 02:06:56 +0000 Subject: Fix to a packet-sniffer bug handling $P.. Diego Berge sent me an example of some line noise which just happened to have $P in it. This tricked the packet sniffer into thinking it found an NMEA device. This change means that now 2 letters are required after the '$' to trigger a detect. If this still false-positives too much, I might crank it up to 4, to match on $PFec, $PFST, $PUBX, $PSRF and the like. --- packet_states.h | 1 + 1 file changed, 1 insertion(+) (limited to 'packet_states.h') diff --git a/packet_states.h b/packet_states.h index a0615f18..696360af 100644 --- a/packet_states.h +++ b/packet_states.h @@ -7,6 +7,7 @@ #ifdef NMEA_ENABLE NMEA_DOLLAR, /* we've seen first character of NMEA leader */ NMEA_PUB_LEAD, /* seen second character of NMEA G leader */ + NMEA_VENDOR_LEAD, /* seen second character of NMEA P leader */ NMEA_LEADER_END, /* seen end char of NMEA leader, in body */ NMEA_CR, /* seen terminating \r of NMEA packet */ NMEA_RECOGNIZED, /* saw trailing \n of NMEA packet */ -- cgit v1.2.1