From 5c69efcfba3dc218526cac5ce1d22a4832a8695b Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Thu, 16 Jul 2009 22:22:05 +0000 Subject: Make the oncore sniffer use the known lengths of packets. This guards against finding 0x0d 0x0a somewhere in the payload. It can happen, and does happen often enough to be annoying. From Hakan Johansson on gpsd-dev --- packet_states.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packet_states.h') diff --git a/packet_states.h b/packet_states.h index 72a57fa6..99845b51 100644 --- a/packet_states.h +++ b/packet_states.h @@ -126,12 +126,12 @@ #endif #ifdef ONCORE_ENABLE - ONCORE_AT2, /* second @ */ - ONCORE_ID1, /* first character of command type */ - ONCORE_ID2, /* second character of command type */ - ONCORE_PAYLOAD, - ONCORE_CR, /* closing CR */ - ONCORE_RECOGNIZED, /* closing LF */ + ONCORE_AT2, /* second @ */ + ONCORE_ID1, /* first character of command type */ + ONCORE_PAYLOAD, /* payload eating */ + ONCORE_CHECKSUM, /* checksum byte */ + ONCORE_CR, /* closing CR */ + ONCORE_RECOGNIZED, /* closing LF */ #endif -- cgit v1.2.1