aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/stm32f2
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/stm32f2')
-rw-r--r--wirish/stm32f2/wirish_digital.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/wirish/stm32f2/wirish_digital.cpp b/wirish/stm32f2/wirish_digital.cpp
index a67111d..bf9dcf5 100644
--- a/wirish/stm32f2/wirish_digital.cpp
+++ b/wirish/stm32f2/wirish_digital.cpp
@@ -124,7 +124,6 @@ void pinMode(uint8 pin, WiringPinMode w_mode) {
}
timer_set_mode(info->timer_device, info->timer_channel, TIMER_PWM);
gpio_set_af(info->gpio_device, info->gpio_bit, timer_af);
- } else {
- gpio_set_modef(info->gpio_device, info->gpio_bit, mode, flags);
}
+ gpio_set_modef(info->gpio_device, info->gpio_bit, mode, flags);
}