summaryrefslogtreecommitdiff
path: root/driver_italk.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-03 16:12:47 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-04 16:23:28 -0400
commit7eacbef3fa19f37e85d452787a605aad1396a4d2 (patch)
tree6dffcfb82c66f69ba096385a3eb60c1256ef37df /driver_italk.c
parent85971992215d9ee830046c18d3899f663c8a20df (diff)
downloadgpsd-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.c12
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;