diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-03 16:12:47 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-04 16:23:28 -0400 |
commit | 7eacbef3fa19f37e85d452787a605aad1396a4d2 (patch) | |
tree | 6dffcfb82c66f69ba096385a3eb60c1256ef37df /driver_italk.c | |
parent | 85971992215d9ee830046c18d3899f663c8a20df (diff) | |
download | gpsd-7eacbef3fa19f37e85d452787a605aad1396a4d2.tar.gz |
Change the logic for managing the drive mode bit to report reality...
...rather than setting it ad-hoc on a per-driver basis.
Diffstat (limited to 'driver_italk.c')
-rw-r--r-- | driver_italk.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/driver_italk.c b/driver_italk.c index c8f6b2fe..01e350ce 100644 --- a/driver_italk.c +++ b/driver_italk.c @@ -376,18 +376,12 @@ static gps_mask_t italk_parse(struct gps_device_t *session, static gps_mask_t italk_parse_input(struct gps_device_t *session) { - gps_mask_t st; - if (session->packet.type == ITALK_PACKET) { - st = italk_parse(session, session->packet.outbuffer, - session->packet.outbuflen); - session->gpsdata.dev.driver_mode = MODE_BINARY; /* binary */ - return st; + return italk_parse(session, session->packet.outbuffer, + session->packet.outbuflen);; #ifdef NMEA_ENABLE } else if (session->packet.type == NMEA_PACKET) { - st = nmea_parse((char *)session->packet.outbuffer, session); - session->gpsdata.dev.driver_mode = MODE_NMEA; /* NMEA */ - return st; + return nmea_parse((char *)session->packet.outbuffer, session); #endif /* NMEA_ENABLE */ } else return 0; |