diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-05-14 08:46:31 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-05-14 08:46:31 +0200 |
commit | 0f52a41e472af9f61689f8cbc2a88361c98929fc (patch) | |
tree | 16805208c6a60f6c8ca366638f26a83157f60f75 /include/arch/arduino-nano | |
parent | 89f6d486f30550db619b130e1a7583cfc6059392 (diff) |
Arduino Nano GPIO: Fix typo
Diffstat (limited to 'include/arch/arduino-nano')
-rw-r--r-- | include/arch/arduino-nano/driver/gpio.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h index 74aa879..30df113 100644 --- a/include/arch/arduino-nano/driver/gpio.h +++ b/include/arch/arduino-nano/driver/gpio.h @@ -132,15 +132,15 @@ class GPIO { } } else if (pin < 24) { if (value) { - PORTB |= _BV(pin - 16); + PORTC |= _BV(pin - 16); } else { - PORTB &= ~_BV(pin - 16); + PORTC &= ~_BV(pin - 16); } } else if (pin < 32) { if (value) { - PORTB |= _BV(pin - 24); + PORTD |= _BV(pin - 24); } else { - PORTB &= ~_BV(pin - 24); + PORTD &= ~_BV(pin - 24); } } } |