diff options
-rw-r--r-- | gpspipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -100,6 +100,7 @@ static void usage(void) "-R Dump super-raw mode (GPS binary).\n" "-w Dump gpsd native data.\n" "-S Set scaled flag.\n" + "-2 Set the split24 flag.\n" "-l Sleep for ten seconds before connecting to gpsd.\n" "-t Time stamp the data.\n" "-T [format] set the timestamp format (strftime(3)-like; implies '-t')\n" @@ -141,7 +142,7 @@ int main(int argc, char **argv) /*@-branchstate@*/ flags = WATCH_ENABLE; - while ((option = getopt(argc, argv, "?dD:lhrRwStT:vVn:s:o:pu")) != -1) { + while ((option = getopt(argc, argv, "?dD:lhrRwStT:vVn:s:o:pu2")) != -1) { switch (option) { case 'D': debug = atoi(optarg); @@ -204,6 +205,9 @@ int main(int argc, char **argv) case 'o': outfile = optarg; break; + case '2': + flags |= WATCH_SPLIT24; + break; case '?': case 'h': default: |