diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2007-01-11 02:06:56 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2007-01-11 02:06:56 +0000 |
commit | 033735841667900a4646e3749f23149b08e6e61e (patch) | |
tree | f0512650ba8a27eb57501c28727a5d7afb8f5b90 /packet_states.h | |
parent | bf95b046a85dfc29c47fa85f8ec107767a6e42fd (diff) | |
download | gpsd-033735841667900a4646e3749f23149b08e6e61e.tar.gz |
Fix to a packet-sniffer bug handling $P..
Diego Berge sent me an example of some line noise which just happened to have
$P<garbage> 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.
Diffstat (limited to 'packet_states.h')
-rw-r--r-- | packet_states.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |