diff --git a/src/ADC/ADC.c b/src/ADC/ADC.c index 2129129..44e41e4 100644 --- a/src/ADC/ADC.c +++ b/src/ADC/ADC.c @@ -30,8 +30,8 @@ void ADC_Init(uint8_t pin_num) if(IsInvalidPin(pin_num)){return;} //Save the porta status. - //porta_out = PORTA.OUT; - //porta_dir = PORTA.DIR; + porta_out = RegEdit_ReadReg((void *) &PORTA.OUT); + porta_dir = RegEdit_ReadReg((void *) &PORTA.DIR); //set the direction to input RegEdit_SetBit((void *) &PORTA.DIRCLR, pin_num);