diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-05-23 06:42:13 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-05-23 06:42:13 -0400 |
commit | bf14d08a909d2adcb0c280a399b191dc50146ee2 (patch) | |
tree | 0cb19e690db30ce386ed5005810eebf0d0f2fd31 /gpsmon.c | |
parent | 43635a21ca0bb7bf66e569270b2f75418e8fb547 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |