From 999837d08f7d3e1326cc494b01063de3b5897faf Mon Sep 17 00:00:00 2001 From: Daniel Dakhno Date: Wed, 31 Jul 2024 01:00:55 +0200 Subject: [PATCH] Revert "allow high impedance as default output" This reverts commit c8230e3cf0a6182c5ed33fe68140ec7811de0805. --- src/gpio/sensor_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpio/sensor_gpio.c b/src/gpio/sensor_gpio.c index 9310de1..5d30fc8 100755 --- a/src/gpio/sensor_gpio.c +++ b/src/gpio/sensor_gpio.c @@ -309,7 +309,7 @@ void gpio_handle_parse_output_digital(uint32_t index, uint32_t pin, uint8_t defa config->pin.output.pin = pin; config->pin.output.default_state = default_state; config->pin.output.invert = invert; - config->pin.output.state = 0b11; // force output pin configuration + config->pin.output.state = 0b10; // force output pin configuration } void gpio_handle_parse_output_analog(uint32_t index, uint32_t pin, uint8_t invert) { @@ -355,7 +355,7 @@ void gpio_init(gpio_input_change_handler_t input_change_handler) { gpio_configs[current_index].pin.output.pin = pin_index; \ gpio_configs[current_index].pin.output.invert = GPIO_CONFIGURATION_PIN_##pin_index##_INVERT; \ gpio_configs[current_index].pin.output.default_state = GPIO_CONFIGURATION_PIN_##pin_index##_DEFAULT_OUTPUT; \ - gpio_configs[current_index].pin.output.state = 0b11; \ + gpio_configs[current_index].pin.output.state = 0b10; \ } \ }while (false)