diff --git a/firmware/analog_input.cpp b/firmware/analog_input.cpp index 2720c5d..c3dda05 100644 --- a/firmware/analog_input.cpp +++ b/firmware/analog_input.cpp @@ -16,7 +16,7 @@ ADCConversionGroup convGroup = nullptr, ADC_CFGR1_CONT | ADC_CFGR1_RES_12BIT, // CFGR1 ADC_TR(0, 0), // TR - ADC_SMPR_SMP_28P5, // SMPR + ADC_SMPR_SMP_7P5, // SMPR ADC_CHSELR_CHSEL0 | ADC_CHSELR_CHSEL1 | ADC_CHSELR_CHSEL2 }; diff --git a/firmware/wideband_config.h b/firmware/wideband_config.h index 1750602..fc1d974 100644 --- a/firmware/wideband_config.h +++ b/firmware/wideband_config.h @@ -4,7 +4,7 @@ #define VCC_VOLTS (3.3f) #define HALF_VCC (VCC_VOLTS / 2) #define ADC_MAX_COUNT (4095) -#define ADC_OVERSAMPLE 16 +#define ADC_OVERSAMPLE 24 // ******************************* // Nernst voltage & ESR sense