diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-01 06:41:35 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-01 06:41:35 +0000 |
commit | 7cc70d9970a2918d149e100e2beecd868d6c6ca8 (patch) | |
tree | 141e80335865ef09b9238750dd422c0d34926ec5 /tsip.c | |
parent | 3d701be95cb54bf876b04e5ea4e22ecca7bbd475 (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |