diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 22:06:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 22:06:39 +0000 |
commit | 6f7dfcf6f615ef4068493330edd12f20ff25cd03 (patch) | |
tree | 7c8db8a5e7c3fbdae9989ab8c743b6316d3ba34f /drivers.c | |
parent | e2ee8609491bf6ce803183aa0c036460584ac404 (diff) | |
download | gpsd-6f7dfcf6f615ef4068493330edd12f20ff25cd03.tar.gz |
Use CYCLE_END condition for the 2-part mal-design of AIS message 24 properly.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1062,8 +1062,7 @@ static gps_mask_t aivdm_analyze(struct gps_device_t *session) if (session->packet.type == AIVDM_PACKET){ session->cycle_state = CYCLE_END_RELIABLE; if (aivdm_decode((char *)session->packet.outbuffer, session->packet.outbuflen, &session->aivdm)) { - if (session->aivdm.decoded.type != 24 || session->aivdm.decoded.type24.part == 1) - session->cycle_state = CYCLE_END; + session->cycle_state = CYCLE_END; return ONLINE_SET | AIS_SET; }else return ONLINE_SET; |