Mercurial > ublox > ublox8
changeset 45:d71fc34c755d
capture: document default ubxport in usage message
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 16 Jan 2020 11:39:17 -0500 |
parents | 9ed7bbc034bf |
children | 0f758661d962 |
files | capture.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/capture.c Thu Jan 16 11:33:32 2020 -0500 +++ b/capture.c Thu Jan 16 11:39:17 2020 -0500 @@ -29,6 +29,8 @@ #include "iothread.h" #include "ubx.h" +#define DEFAULT_UBXPORT 3 + static char file_buffer[65536 + 8]; /* worst case message */ static void usage(const char *prog) @@ -42,7 +44,8 @@ fprintf(stderr, " -r enable GLONASS\n"); fprintf(stderr, " -s enable SBAS & QZSS\n"); fprintf(stderr, " -d <device> path or - for standard in\n"); - fprintf(stderr, " -u <ubxport> port number (0=DCC, 1=UART, 3=USB, 4=SPI)\n"); + fprintf(stderr, " -u <ubxport> port number (default %d; 0=DCC, " + "1=UART, 3=USB, 4=SPI)\n", DEFAULT_UBXPORT); fprintf(stderr, " -l <log> path for framed UBX message log\n"); exit(1); } @@ -219,7 +222,7 @@ enable_gps = false; enable_glonass = false; enable_sbas = false; - ubxport = 3; + ubxport = DEFAULT_UBXPORT; while ((opt = getopt(argc, argv, "+cegrsd:l:u:")) != -1) { switch (opt) {