no longer assume analog port is port C, as this assumption is false

This commit is contained in:
Michael Moon 2010-12-07 15:16:25 +11:00
parent 1f30c7f43b
commit eaddc510b4
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ void analog_init() {
adc_counter = 0;
adc_running_mask = 1;
DDRC &= ANALOG_MASK;
AIO0_DDR &= ANALOG_MASK;
DIDR0 = ANALOG_MASK & 0x3F;
// now we start the first conversion and leave the rest to the interrupt