summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-11-26 07:11:27 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-11-26 07:11:27 +0000
commit39cebecb357e50a97a7fa6d8971fee078f5d67e9 (patch)
tree20be5177b7897a687dd7091a50deb0e43d0a701b /packet.c
parent3f1e862ca593c413e4f2beb5241360662a5aad99 (diff)
downloadgpsd-39cebecb357e50a97a7fa6d8971fee078f5d67e9.tar.gz
allow TSIP "super-packets"
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index 113933c5..43cd2567 100644
--- a/packet.c
+++ b/packet.c
@@ -765,7 +765,7 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix)
if (session->inbuffer[n++] != DLE)
goto not_tsip;
pkt_id = session->inbuffer[n++]; /* packet ID */
- if ((0x41 > pkt_id) || (0x84 < pkt_id))
+ if ((0x41 > pkt_id) || (0x8f < pkt_id))
goto not_tsip;
for ( len = 0; n < packetlen; len++ ) {
if (session->inbuffer[n++] == DLE) {
@@ -801,6 +801,8 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix)
/* pass */;
else if ((0x82 == pkt_id) && (0x03 == len))
/* pass */;
+ else if ((0x8f == pkt_id))
+ /* pass */;
else {
gpsd_report(LOG_IO,
"TSIP REJECT pkt_id = %#02x, n= %#02x, len= %#02x\n",