summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
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);