summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-02-17 14:57:08 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-02-17 14:57:08 +0000
commit76e9ad8e1d8f37181de9fef296a11b3c2e49fddb (patch)
treee0294adc4fb539f00175a02fc58ebd71a8592b7d /gpsmon.c
parentc80072ab454d76ef9724b77a98bf1a3c5c8b2b03 (diff)
downloadgpsd-76e9ad8e1d8f37181de9fef296a11b3c2e49fddb.tar.gz
Implemented and documented gpsmon 'i' command.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 533943de..a123b48b 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -728,6 +728,17 @@ int main (int argc, char **argv)
/*@ +sefparams @*/
}
break;
+
+ case 'i': /* start probing for subtype */
+ if (active == NULL)
+ error_and_pause("No driver active");
+ else {
+ context.readonly = false;
+ (void)gpsd_switch_driver(&session,
+ (*active)->driver->type_name);
+ }
+ break;
+
case 'l': /* open logfile */
if (logfile != NULL) {
(void)wprintw(debugwin, ">>> Logging to %s off", logfile);