From 24f23ad9433b779135a74eef8854ab509ed0eeb9 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sat, 6 Dec 2014 20:03:11 -0600 Subject: [PATCH] auto-sync --- firmware/hw_layer/adc_inputs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/hw_layer/adc_inputs.cpp b/firmware/hw_layer/adc_inputs.cpp index 8d5b99a43f..a77cb6e8e6 100644 --- a/firmware/hw_layer/adc_inputs.cpp +++ b/firmware/hw_layer/adc_inputs.cpp @@ -154,6 +154,7 @@ static void pwmpcb_slow(PWMDriver *pwmp) { /* Starts an asynchronous ADC conversion operation, the conversion will be executed in parallel to the current PWM cycle and will terminate before the next PWM cycle.*/ + slowAdc.conversionCount++; chSysLockFromIsr() ; if (ADC_SLOW_DEVICE.state != ADC_READY && @@ -165,11 +166,9 @@ static void pwmpcb_slow(PWMDriver *pwmp) { ; return; } - slowAdc.errorsCount++; adcStartConversionI(&ADC_SLOW_DEVICE, &adcgrpcfgSlow, slowAdcState.samples, ADC_GRP1_BUF_DEPTH_SLOW); chSysUnlockFromIsr() ; - slowAdc.conversionCount++; #endif }