From 660cc2d40ce3a4aa9256b8d321e942a6c925aaee Mon Sep 17 00:00:00 2001 From: Tommy Vestermark Date: Sun, 9 Aug 2015 23:17:11 +0200 Subject: [PATCH] Lower default level limit to 8000 Max theoretical value is 16384 (values above is ripple due to saturation). Decodes better signals with lower levels. Analyses rtl_433_tests/tests/GT-WT-02/gfile003.data cleanly --- include/rtl_433.h | 2 +- src/rtl_433.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rtl_433.h b/include/rtl_433.h index 4c3196df..83bc28f0 100644 --- a/include/rtl_433.h +++ b/include/rtl_433.h @@ -27,7 +27,7 @@ #define DEFAULT_HOP_EVENTS 2 #define DEFAULT_ASYNC_BUF_NUMBER 32 #define DEFAULT_BUF_LENGTH (16 * 16384) -#define DEFAULT_LEVEL_LIMIT 10000 +#define DEFAULT_LEVEL_LIMIT 8000 // Theoretical high level at I/Q saturation is 128x128 = 16384 (above is ripple) #define DEFAULT_DECIMATION_LEVEL 0 #define MINIMAL_BUF_LENGTH 512 #define MAXIMAL_BUF_LENGTH (256 * 16384) diff --git a/src/rtl_433.c b/src/rtl_433.c index 322bddb1..d6732dcb 100644 --- a/src/rtl_433.c +++ b/src/rtl_433.c @@ -74,7 +74,7 @@ void usage(r_device *devices) { "\t[-g gain (default: 0 for auto)]\n" "\t[-a analyze mode, print a textual description of the signal]\n" "\t[-t signal auto save, use it together with analyze mode (-a -t)\n" - "\t[-l change the detection level used to determine pulses (0-3200) default: %i]\n" + "\t[-l change the detection level used to determine pulses (0-32767) default: %i]\n" "\t[-f [-f...] receive frequency[s], default: %i Hz]\n" "\t[-s sample rate (default: %i Hz)]\n" "\t[-S force sync output (default: async)]\n"