From 0f52a41e472af9f61689f8cbc2a88361c98929fc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 14 May 2020 08:46:31 +0200 Subject: Arduino Nano GPIO: Fix typo --- include/arch/arduino-nano/driver/gpio.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/arch/arduino-nano') 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); } } } -- cgit v1.2.3