diff --git a/src/include/drv/iop_adc_functions.c b/src/include/drv/iop_adc_functions.c index 6220bdc52ac2120733b7741deb6c48a009d2560e..360bcd13fd815c6d0434759f16c24f822773a145 100644 --- a/src/include/drv/iop_adc_functions.c +++ b/src/include/drv/iop_adc_functions.c @@ -323,6 +323,7 @@ iop_adc_read( adcInfo_t* adcinfo, int cpuClk[] ) // loops and max_loops are usually equal to UNDERSAMPLE, but on the first cycle // they loops may be less. + max_loops = UNDERSAMPLE; if(first_adc_read) { loops = UNDERSAMPLE - cdsPciModules.adcTimeShift[card];