Various documentation fixes for auto level

This commit is contained in:
Tommy Vestermark
2016-09-29 21:59:05 +02:00
parent f5d0cf4140
commit dc68e1672c
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ Usage: = Tuner options =
= Demodulator options =
[-R <device>] Enable only the specified device decoding protocol (can be used multiple times)
[-G] Enable all device protocols, included those disabled by default
[-l <level>] Change detection level used to determine pulses [0-32767] (0 = auto) (default: 8000)
[-l <level>] Change detection level used to determine pulses [0-16384] (0 = auto) (default: 0)
[-z <value>] Override short value in data decoder
[-x <value>] Override long value in data decoder
[-n <value>] Specify number of samples to take (each sample is 2 bytes: 1 each of I & Q)

View File

@@ -105,7 +105,7 @@ void usage(r_device *devices) {
"\t= Demodulator options =\n"
"\t[-R <device>] Enable only the specified device decoding protocol (can be used multiple times)\n"
"\t[-G] Enable all device protocols, included those disabled by default\n"
"\t[-l <level>] Change detection level used to determine pulses [0-32767] (0 = auto) (default: %i)\n"
"\t[-l <level>] Change detection level used to determine pulses [0-16384] (0 = auto) (default: %i)\n"
"\t[-z <value>] Override short value in data decoder\n"
"\t[-x <value>] Override long value in data decoder\n"
"\t[-n <value>] Specify number of samples to take (each sample is 2 bytes: 1 each of I & Q)\n"
@@ -1063,7 +1063,7 @@ int main(int argc, char **argv) {
else
fprintf(stderr, "Sample rate set to %d.\n", rtlsdr_get_sample_rate(dev)); // Unfortunately, doesn't return real rate
fprintf(stderr, "Bit detection level set to %d.\n", demod->level_limit);
fprintf(stderr, "Bit detection level set to %d%s.\n", demod->level_limit, (demod->level_limit ? "" : " (Auto)"));
if (0 == gain) {
/* Enable automatic gain */