diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-15 06:07:54 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-15 06:07:54 -0400 |
commit | 89363f6ebcfb9810f38303571865208eac8b4b5c (patch) | |
tree | be41fa901f4b8f51d5a750794478b757d7ad72e9 /driver_proto.c | |
parent | ab6b0d294fc2fd04dd35d1e08e83adc5268b2067 (diff) | |
download | gpsd-89363f6ebcfb9810f38303571865208eac8b4b5c.tar.gz |
Clean up an archaism in the prototype driver.
Diffstat (limited to 'driver_proto.c')
-rw-r--r-- | driver_proto.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/driver_proto.c b/driver_proto.c index dbeacc54..f9f7f060 100644 --- a/driver_proto.c +++ b/driver_proto.c @@ -445,14 +445,9 @@ static bool _proto__set_speed(struct gps_device_t *session, static void _proto__set_mode(struct gps_device_t *session, int mode) { if (mode == MODE_NMEA) { - // _proto__to_nmea(session->gpsdata.gps_fd,session->gpsdata.baudrate); /* send the mode switch control string */ - /* - * Anticipatory switching works only when the packet getter is the - * generic one and it recognizes packets of the type this driver - * is expecting. This should be the normal case. - */ - (void)gpsd_switch_driver(session, "Generic NMEA"); + /* send a mode switch control string */ } else { + /* send a mode switch control string */ session->back_to_nmea = false; } } |