diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-11 14:52:42 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-11 14:52:42 -0500 |
commit | 0343365a713c000204fd3bf28a662709fccca463 (patch) | |
tree | ca404e9497e8d8e285ed5fe2e910d15df3d7efd2 /gpsmon.c | |
parent | 679462e59d42baed4ca1a5f14e1b1958841fae84 (diff) | |
download | gpsd-0343365a713c000204fd3bf28a662709fccca463.tar.gz |
gpsmon i command now works.
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |