summaryrefslogtreecommitdiff
path: root/tsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-01 06:41:35 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-01 06:41:35 +0000
commit7cc70d9970a2918d149e100e2beecd868d6c6ca8 (patch)
tree141e80335865ef09b9238750dd422c0d34926ec5 /tsip.c
parent3d701be95cb54bf876b04e5ea4e22ecca7bbd475 (diff)
downloadgpsd-7cc70d9970a2918d149e100e2beecd868d6c6ca8.tar.gz
Drivers have to explicitly set the driver_mode field when they do a switch...
...whether or not they actually do anything. Otherwise it may not have the right value when somebody queries it.
Diffstat (limited to 'tsip.c')
-rw-r--r--tsip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tsip.c b/tsip.c
index b613830b..12b506db 100644
--- a/tsip.c
+++ b/tsip.c
@@ -683,13 +683,13 @@ static gps_mask_t tsip_parse_input(struct gps_device_t *session)
if (session->packet_type == TSIP_PACKET){
st = tsip_analyze(session);
- session->gpsdata.driver_mode = 1;
+ session->gpsdata.driver_mode = 1; /* binary */
return st;
#ifdef EVERMORE_ENABLE
} else if (session->packet_type == EVERMORE_PACKET) {
(void)gpsd_switch_driver(session, "EverMore binary");
st = evermore_parse(session, session->outbuffer, session->outbuflen);
- session->gpsdata.driver_mode = 0;
+ session->gpsdata.driver_mode = 1; /* binary */
return st;
#endif /* EVERMORE_ENABLE */
} else