summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-11 14:52:42 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-11 14:52:42 -0500
commit0343365a713c000204fd3bf28a662709fccca463 (patch)
treeca404e9497e8d8e285ed5fe2e910d15df3d7efd2 /gpsmon.c
parent679462e59d42baed4ca1a5f14e1b1958841fae84 (diff)
downloadgpsd-0343365a713c000204fd3bf28a662709fccca463.tar.gz
gpsmon i command now works.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 2e952b5a..082c9a62 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -651,10 +651,10 @@ static bool do_command(void)
context.readonly = !context.readonly;
else
context.readonly = (atoi(line + 1) == 0);
- /* *INDENT-OFF* */
- (void)gpsd_switch_driver(&session,
- (*active)->driver->type_name);
- /* *INDENT-ON* */
+ announce_log("[probing %sabled]", context.readonly ? "dis" : "en");
+ if (!context.readonly)
+ /* magic - forces a reconfigure */
+ session.packet.counter = 0;
}
break;