diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2009-11-19 05:04:35 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2009-11-19 05:04:35 +0000 |
commit | 0fb9b9ee6a07db883cd56fe6991519f4a9840305 (patch) | |
tree | f2467369a15d80eeda182d82c79af545d878cd16 | |
parent | 3b7ad7a3887cf387365fbc38ef5e6b171215b795 (diff) | |
download | gpsd-0fb9b9ee6a07db883cd56fe6991519f4a9840305.tar.gz |
these speed switches are no longer necessary; tsip can probe for parity
-rw-r--r-- | driver_tsip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_tsip.c b/driver_tsip.c index 8db91e42..281086d5 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -937,7 +937,7 @@ static void tsip_event_hook(struct gps_device_t *session, event_t event) */ session->driver.tsip.parity = session->gpsdata.dev.parity; session->driver.tsip.stopbits = (uint)session->gpsdata.dev.stopbits; - gpsd_set_speed(session, session->gpsdata.dev.baudrate, 'O', 1); + // gpsd_set_speed(session, session->gpsdata.dev.baudrate, 'O', 1); break; case 1: @@ -1060,7 +1060,8 @@ static void tsip_mode(struct gps_device_t *session, int mode) /* The speed switcher also puts us back in TSIP, so call it */ /* with the default 9600 8O1. */ // FIXME: Should preserve the current speed. - (void)tsip_speed_switch(session, 9600, 'O', 1); + // (void)tsip_speed_switch(session, 9600, 'O', 1); + ; } else { gpsd_report(LOG_ERROR, "unknown mode %i requested\n", mode); |