From 2061bc7c789ff71c0e5557f5a2e8276e3ccad730 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Tue, 9 Sep 2014 20:02:45 -0500 Subject: [PATCH] auto-sync --- firmware/hw_layer/adc_inputs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/hw_layer/adc_inputs.cpp b/firmware/hw_layer/adc_inputs.cpp index d853fa45a8..1f9bfbde97 100644 --- a/firmware/hw_layer/adc_inputs.cpp +++ b/firmware/hw_layer/adc_inputs.cpp @@ -157,9 +157,9 @@ static void pwmpcb_slow(PWMDriver *pwmp) { terminate before the next PWM cycle.*/ chSysLockFromIsr() ; - if (ADC_FAST_DEVICE.state != ADC_READY && - ADC_FAST_DEVICE.state != ADC_COMPLETE && - ADC_FAST_DEVICE.state != ADC_ERROR) { + if (ADC_SLOW_DEVICE.state != ADC_READY && + ADC_SLOW_DEVICE.state != ADC_COMPLETE && + ADC_SLOW_DEVICE.state != ADC_ERROR) { // todo: why and when does this happen? firmwareError("ADC slow not ready?"); slowAdc.errorsCount++; chSysUnlockFromIsr()