Skip to content

Commit

Permalink
fixup cpu/atmega_common: checking features instead of CPU models
Browse files Browse the repository at this point in the history
  • Loading branch information
hugueslarrive committed Jul 4, 2023
1 parent e565be9 commit 822e9c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpu/atmega_common/periph/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ int adc_init(adc_t line)
else if (line == 8) {
DDRD &= ~(1 << PORTD4);
PORTD &= ~(1 << PORTD4);
}
else if (line < 11) {
DDRD &= ~(1 << (line - 3));
PORTD &= ~(1 << (line - 3));
}
else {
DDRB &= ~(1 << (line - 7));
PORTB &= ~(1 << (line - 7));
Expand Down

0 comments on commit 822e9c3

Please sign in to comment.