added code to set the adc sample time which i forgot last time.