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:
parent
70fcf486a0
commit
5f57b85438
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user