From 5f57b8543824a743ff31186648ce5128c38b7bed Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 31 Aug 2019 17:12:15 -0600 Subject: [PATCH] arch/arm/src/stm32/stm32_adc.c: Another fix. adc_calibrate was called even when it was conditioned out, causing a link time failure. --- arch/arm/src/stm32/stm32_adc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/stm32/stm32_adc.c b/arch/arm/src/stm32/stm32_adc.c index 44a515a5d6..f408b6ff2d 100644 --- a/arch/arm/src/stm32/stm32_adc.c +++ b/arch/arm/src/stm32/stm32_adc.c @@ -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 /****************************************************************************