mirror of https://github.com/joan2937/pigpio
Merge pull request #37 from Thuffir/master
Include version in help text to make identification easier.
This commit is contained in:
commit
d8f75fdfd7
|
@ -84,6 +84,7 @@ void fatal(char *fmt, ...)
|
||||||
void usage()
|
void usage()
|
||||||
{
|
{
|
||||||
fprintf(stderr, "\n" \
|
fprintf(stderr, "\n" \
|
||||||
|
"pigpio V%d\n" \
|
||||||
"Usage: sudo pigpiod [OPTION] ...\n" \
|
"Usage: sudo pigpiod [OPTION] ...\n" \
|
||||||
" -a value, DMA mode, 0=AUTO, 1=PMAP, 2=MBOX, default AUTO\n" \
|
" -a value, DMA mode, 0=AUTO, 1=PMAP, 2=MBOX, default AUTO\n" \
|
||||||
" -b value, gpio sample buffer in milliseconds, default 120\n" \
|
" -b value, gpio sample buffer in milliseconds, default 120\n" \
|
||||||
|
@ -100,7 +101,7 @@ void usage()
|
||||||
"sudo pigpiod -s 2 -b 200 -f\n" \
|
"sudo pigpiod -s 2 -b 200 -f\n" \
|
||||||
" Set a sample rate of 2 microseconds with a 200 millisecond\n" \
|
" Set a sample rate of 2 microseconds with a 200 millisecond\n" \
|
||||||
" buffer. Disable the fifo interface.\n" \
|
" buffer. Disable the fifo interface.\n" \
|
||||||
"\n");
|
"\n", PIGPIO_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint64_t getNum(char *str, int *err)
|
static uint64_t getNum(char *str, int *err)
|
||||||
|
|
Loading…
Reference in New Issue