summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-03 22:06:39 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-03 22:06:39 +0000
commit6f7dfcf6f615ef4068493330edd12f20ff25cd03 (patch)
tree7c8db8a5e7c3fbdae9989ab8c743b6316d3ba34f /drivers.c
parente2ee8609491bf6ce803183aa0c036460584ac404 (diff)
downloadgpsd-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers.c b/drivers.c
index bbc97368..abf3953b 100644
--- a/drivers.c
+++ b/drivers.c
@@ -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;