diff options
author | Reinhard Arlt <reinhard.arlt@t-online.de> | 2012-09-26 10:10:05 +0200 |
---|---|---|
committer | Reinhard Arlt <reinhard.arlt@t-online.de> | 2012-09-26 10:10:05 +0200 |
commit | be0b0c5ec781a1b9ce3c1d7cf19e706e8527e651 (patch) | |
tree | 6494494ace0865e8366bcae1cdd0c9b225260d27 /gpspipe.c | |
parent | 5dcc92cfab4321fa61630c77677bedd61c2bbfe2 (diff) | |
download | gpsd-be0b0c5ec781a1b9ce3c1d7cf19e706e8527e651.tar.gz |
Add -S (for scaled flag) option to gpspipe.
Diffstat (limited to 'gpspipe.c')
-rw-r--r-- | gpspipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -99,6 +99,7 @@ static void usage(void) "-r Dump raw NMEA.\n" "-R Dump super-raw mode (GPS binary).\n" "-w Dump gpsd native data.\n" + "-S Set scaled 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" @@ -138,7 +139,7 @@ int main(int argc, char **argv) /*@-branchstate@*/ flags = WATCH_ENABLE; - while ((option = getopt(argc, argv, "?dD:lhrRwtT:vVn:s:o:p")) != -1) { + while ((option = getopt(argc, argv, "?dD:lhrRwStT:vVn:s:o:p")) != -1) { switch (option) { case 'D': debug = atoi(optarg); @@ -181,6 +182,9 @@ int main(int argc, char **argv) flags |= WATCH_JSON; watch = true; break; + case 'S': + flags |= WATCH_SCALED; + break; case 'p': profile = true; break; |