arch/arm/src/stm32/stm32_adc.c: Another fix. adc_calibrate was called even when it was conditioned out, causing a link time failure.

This commit is contained in:
Gregory Nutt 2019-08-31 17:12:15 -06:00
parent 70fcf486a0
commit 5f57b85438

View File

@ -2436,6 +2436,8 @@ static void adc_calibrate(FAR struct stm32_dev_s *priv)
adc_modifyreg(priv, STM32_ADC_CR2_OFFSET, ADC_CR2_ADON, 0);
}
#else
# define adc_calibrate(priv)
#endif
/****************************************************************************