summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-02-28 18:10:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-02-28 18:10:11 +0000
commit08a01e8e6522b884f840900fc1f6a5cc2e2dc53d (patch)
treec13c249916faddbb60f630e6196a156f13fe5a9c /gpsd.c
parent6f0f1f9f49616b03361872b9d355638cb28a3a4e (diff)
downloadgpsd-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 3b2319b2..d7e93738 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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