summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-23 06:42:13 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-23 06:42:13 -0400
commitbf14d08a909d2adcb0c280a399b191dc50146ee2 (patch)
tree0cb19e690db30ce386ed5005810eebf0d0f2fd31 /gpsmon.c
parent43635a21ca0bb7bf66e569270b2f75418e8fb547 (diff)
downloadgpsd-bf14d08a909d2adcb0c280a399b191dc50146ee2.tar.gz
In gpsmon, fix control sending to actually work again.
mike_t reports that SiRF mode sets stopped working after 2.95, Ge bisected to a commit that made the driver respect the readonly flag, which gpsmon wasn't clearing at the right time.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 977ab5df..7023222f 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -325,7 +325,9 @@ bool monitor_control_send( /*@in@*/ unsigned char *buf, size_t len)
session.gpsdata.gps_fd = controlfd;
}
+ context.readonly = false;
st = (*active)->driver->control_send(&session, (char *)buf, len);
+ context.readonly = true;
if (!serial) {
/* stop pretending now */