From 9c366aad94518bafe41a1259ab243805400a923b Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Wed, 3 Mar 2021 19:20:26 -0300 Subject: [PATCH] xtensa/esp32: Allow pin to be configured as Input and Output simultaneously --- arch/xtensa/src/esp32/esp32_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32/esp32_gpio.c b/arch/xtensa/src/esp32/esp32_gpio.c index 662cf86f28..e993308319 100644 --- a/arch/xtensa/src/esp32/esp32_gpio.c +++ b/arch/xtensa/src/esp32/esp32_gpio.c @@ -196,7 +196,7 @@ int esp32_configgpio(int pin, gpio_pinattr_t attr) /* Handle output pins */ - else if ((attr & OUTPUT) != 0) + if ((attr & OUTPUT) != 0) { if (pin < 32) {