From faafbdd7251ef42563340207711911f79cbce2d5 Mon Sep 17 00:00:00 2001 From: WiseLord Date: Sun, 4 Apr 2021 18:47:55 +0300 Subject: [PATCH] Less threshold for signal detection --- src/spectrum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectrum.c b/src/spectrum.c index 3f3a54f..a3d1c2e 100644 --- a/src/spectrum.c +++ b/src/spectrum.c @@ -159,8 +159,8 @@ static void spInitADC(void) #ifdef STM32F1 LL_ADC_SetAnalogWDMonitChannels(ADC1, LL_ADC_AWD_ALL_CHANNELS_REG); - LL_ADC_SetAnalogWDThresholds(ADC1, LL_ADC_AWD_THRESHOLD_LOW, 2047 - 1024); - LL_ADC_SetAnalogWDThresholds(ADC1, LL_ADC_AWD_THRESHOLD_HIGH, 2047 + 1024); + LL_ADC_SetAnalogWDThresholds(ADC1, LL_ADC_AWD_THRESHOLD_LOW, 2047 - 512); + LL_ADC_SetAnalogWDThresholds(ADC1, LL_ADC_AWD_THRESHOLD_HIGH, 2047 + 512); #endif #ifdef STM32F3