diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-02-28 18:10:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-02-28 18:10:11 +0000 |
commit | 08a01e8e6522b884f840900fc1f6a5cc2e2dc53d (patch) | |
tree | c13c249916faddbb60f630e6196a156f13fe5a9c /gpsd.c | |
parent | 6f0f1f9f49616b03361872b9d355638cb28a3a4e (diff) | |
download | gpsd-08a01e8e6522b884f840900fc1f6a5cc2e2dc53d.tar.gz |
Create infrastructure for allowing changes of parity and stop bits.
Mainly useful for debugging odd stuff like Trimbles, most things run
8N1 these days. Don't expose it to the user yet.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -729,7 +729,10 @@ static int handle_gpsd_request(struct subscriber_t* sub, char *buf, int buflen) while (isdigit(*p)) p++; #ifdef ALLOW_RECONFIGURE if (sub->device->device_type->speed_switcher) - if (sub->device->device_type->speed_switcher(sub->device, (unsigned)i)) { + if (sub->device->device_type->speed_switcher(sub->device, + (unsigned)i, + sub->device->gpsdata.parity, + sub->device->gpsdata.stopbits)) { /* * Allow the control string time to register at the * GPS before we do the baud rate switch, which |