aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F4xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-07 10:38:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-07 10:38:10 +0000
commitbb2ef4f818c779d479d94a0494a2564e16813e31 (patch)
tree886f99fc9903fbdc5be075dacb350d4b0a4c7d18 /os/hal/platforms/STM32F4xx
parent2c615ccc91027f0ed03124ef55171a1dffdb7ffa (diff)
downloadChibiOS-bb2ef4f818c779d479d94a0494a2564e16813e31.tar.gz
ChibiOS-bb2ef4f818c779d479d94a0494a2564e16813e31.tar.bz2
ChibiOS-bb2ef4f818c779d479d94a0494a2564e16813e31.zip
Fixed error in latest ADC driver change.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4738 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx')
-rw-r--r--os/hal/platforms/STM32F4xx/adc_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F4xx/adc_lld.c b/os/hal/platforms/STM32F4xx/adc_lld.c
index 172b2642c..bf0788dea 100644
--- a/os/hal/platforms/STM32F4xx/adc_lld.c
+++ b/os/hal/platforms/STM32F4xx/adc_lld.c
@@ -348,7 +348,7 @@ void adc_lld_start_conversion(ADCDriver *adcp) {
/* ADC configuration and start, the start is performed using the method
specified in the CR2 configuration, usually ADC_CR2_SWSTART.*/
adcp->adc->CR1 = grpp->cr1 | ADC_CR1_OVRIE | ADC_CR1_SCAN;
- if ((grpp->cr2 & ADC_CR2_SWSTART) == 0)
+ if ((grpp->cr2 & ADC_CR2_SWSTART) != 0)
adcp->adc->CR2 = grpp->cr2 | ADC_CR2_CONT | ADC_CR2_DMA |
ADC_CR2_DDS | ADC_CR2_ADON;
else