diff options
author | Reinhard Arlt <reinhard.arlt@t-online.de> | 2013-11-08 12:23:27 +0100 |
---|---|---|
committer | Reinhard Arlt <reinhard.arlt@t-online.de> | 2013-11-08 12:23:27 +0100 |
commit | d64e8f136d79d64c90c00a341661811aa7613970 (patch) | |
tree | fc438bed56c8fbe9d14ccdd576e5e54d58b395c5 /gpspipe.c | |
parent | 414b99fc1237f442d14e4604c0eaadc6d1b9f667 (diff) | |
download | gpsd-d64e8f136d79d64c90c00a341661811aa7613970.tar.gz |
Add -2 flag to set split24 flag.
Diffstat (limited to 'gpspipe.c')
-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: |