From dc68e1672c19ed7062af65fb3b445d009fe17b0f Mon Sep 17 00:00:00 2001 From: Tommy Vestermark Date: Thu, 29 Sep 2016 21:59:05 +0200 Subject: [PATCH] Various documentation fixes for auto level --- README.md | 2 +- src/rtl_433.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 25c0be2e..68714061 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Usage: = Tuner options = = Demodulator options = [-R ] Enable only the specified device decoding protocol (can be used multiple times) [-G] Enable all device protocols, included those disabled by default - [-l ] Change detection level used to determine pulses [0-32767] (0 = auto) (default: 8000) + [-l ] Change detection level used to determine pulses [0-16384] (0 = auto) (default: 0) [-z ] Override short value in data decoder [-x ] Override long value in data decoder [-n ] Specify number of samples to take (each sample is 2 bytes: 1 each of I & Q) diff --git a/src/rtl_433.c b/src/rtl_433.c index 5ee6730c..ecc7a9a6 100755 --- a/src/rtl_433.c +++ b/src/rtl_433.c @@ -105,7 +105,7 @@ void usage(r_device *devices) { "\t= Demodulator options =\n" "\t[-R ] 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 ] Change detection level used to determine pulses [0-32767] (0 = auto) (default: %i)\n" + "\t[-l ] Change detection level used to determine pulses [0-16384] (0 = auto) (default: %i)\n" "\t[-z ] Override short value in data decoder\n" "\t[-x ] Override long value in data decoder\n" "\t[-n ] 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 */