diff --git a/cpu/msp430fxyz/periph/gpio.c b/cpu/msp430fxyz/periph/gpio.c index e107ad0fb4..c9de942d80 100644 --- a/cpu/msp430fxyz/periph/gpio.c +++ b/cpu/msp430fxyz/periph/gpio.c @@ -88,14 +88,13 @@ int gpio_init(gpio_t pin, gpio_mode_t mode) return -1; } - /* reset pin and output value */ + /* set pin direction */ if (mode == GPIO_OUT) { port->DIR |= _pin(pin); } else { port->DIR &= ~(_pin(pin)); } - port->OD &= ~(_pin(pin)); return 0; }