give the raw sample to the analyzer

This commit is contained in:
Ahmet Inan 2015-01-08 16:11:29 +01:00
parent f0816a8426
commit 659a644362
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ void decode(int samples) {
continue;
float norm_amp = amp / avg_amp;
spectrum_analyzer(norm_amp);
spectrum_analyzer(amp);
complex_t cnt_baseband = convert(&cnt_ddc, norm_amp);
complex_t dat_baseband = convert(&dat_ddc, norm_amp);

View file

@ -40,7 +40,7 @@ static void freq_marker(int freq)
}
}
static void spectrum_analyzer(float amplitude)
static void spectrum_analyzer(int amplitude)
{
const int M = 7;
static int n;