diff --git a/src/rtl_fm.c b/src/rtl_fm.c index eb7190a..b761c0e 100644 --- a/src/rtl_fm.c +++ b/src/rtl_fm.c @@ -59,7 +59,8 @@ #define DEFAULT_BUF_LENGTH (1 * 16384) #define MINIMAL_BUF_LENGTH 512 #define MAXIMAL_BUF_LENGTH (256 * 16384) -#define CONSEQ_SQUELCH 4 +#define CONSEQ_SQUELCH 4 +#define AUTO_GAIN -100 static pthread_t demod_thread; static sem_t data_ready; @@ -103,7 +104,7 @@ void usage(void) "\t (use multiple -f for scanning)\n" "\t[-s samplerate (default: 24000 Hz)]\n" "\t[-d device_index (default: 0)]\n" - "\t[-g tuner_gain (default: -1dB)]\n" + "\t[-g tuner_gain (default: automatic)]\n" "\t[-l squelch_level (default: 150)]\n" "\t[-E freq sets lower edge (default: center)]\n" "\tfilename (a '-' dumps samples to stdout)\n\n" @@ -311,8 +312,8 @@ int mad(int *samples, int len, int step) /* mean average deviation */ { int i=0, sum=0, ave=0; - if (len == 0) - {return 0;} + if (len == 0) + {return 0;} for (i=0; i