X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Favr%2Fao_adc_avr.c;h=739a6d4ad95447937dca92e3e653549abd3bff85;hb=4a08e298d65aeb591ef68f27c49af68d75a85290;hp=4896b01579cec10168a73347acfc2e3ae19e2905;hpb=e177cfb477f7ce8dc18fa8dcb3208867c0bee336;p=fw%2Faltos diff --git a/src/avr/ao_adc_avr.c b/src/avr/ao_adc_avr.c index 4896b015..739a6d4a 100644 --- a/src/avr/ao_adc_avr.c +++ b/src/avr/ao_adc_avr.c @@ -97,8 +97,10 @@ ISR(ADC_vect) if (++ao_adc_channel < NUM_ADC - 1) ao_adc_start(); else { +#if HAS_ICP3_COUNT /* steal last adc channel for pwm input */ ao_data_ring[ao_data_head].adc.adc[ao_adc_channel] = ao_icp3_count; +#endif ADCSRA = ADCSRA_INIT; ao_data_ring[ao_data_head].tick = ao_time(); ao_data_head = ao_data_ring_next(ao_data_head);