Commit 0f52a41e authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Arduino Nano GPIO: Fix typo

parent 89f6d486
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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);
				}
			}
		}