ADC sampling fix