diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-09-22 14:18:40 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-09-22 14:18:40 -0400 |
commit | b382e653a5af4c6b5b32c42b9d80e8830135f14f (patch) | |
tree | d8f0bbae8aaba82f9394061148d77f77a418850c /packet.c | |
parent | 02eaa22e3f26ab572c699b73ce585555b420ddfe (diff) | |
download | gpsd-b382e653a5af4c6b5b32c42b9d80e8830135f14f.tar.gz |
TSIP driver can only use one length of 0x5c packet.
All regression tests pass.
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1717,8 +1717,7 @@ void packet_parse(struct gps_packet_t *lexer) /* pass */ ; else if (TSIP_ID_AND_LENGTH(0x5b, 16)) /* pass */ ; - else if ((0x5c == pkt_id) - && ((0x1c <= packetlen) && (0x1e >= packetlen))) + else if (TSIP_ID_AND_LENGTH(0x5c, 24)) /* pass */ ; else if (TSIP_ID_AND_LENGTH(0x5e, 2)) /* pass */ ; |