summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorReinhard Arlt <reinhard.arlt@t-online.de>2013-11-08 12:23:27 +0100
committerReinhard Arlt <reinhard.arlt@t-online.de>2013-11-08 12:23:27 +0100
commitd64e8f136d79d64c90c00a341661811aa7613970 (patch)
treefc438bed56c8fbe9d14ccdd576e5e54d58b395c5 /gpspipe.c
parent414b99fc1237f442d14e4604c0eaadc6d1b9f667 (diff)
downloadgpsd-d64e8f136d79d64c90c00a341661811aa7613970.tar.gz
Add -2 flag to set split24 flag.
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 19ed678e..5217d2ca 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -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: