diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-12-14 14:25:38 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-12-14 14:25:38 -0500 |
| commit | d793ec287234e1e968adf3b8e03c184c19339942 (patch) | |
| tree | d7dac1b6b7052eb47d986c64e3605e758a7e0a8b | |
| parent | c1a2ea27cecc066e57b635e21882c60621c23964 (diff) | |
Change pinfunc to default of 0 at reset
| -rw-r--r-- | ports/esp32s2/common-hal/microcontroller/Pin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/esp32s2/common-hal/microcontroller/Pin.c b/ports/esp32s2/common-hal/microcontroller/Pin.c index 0434a6e3a..81dfa1308 100644 --- a/ports/esp32s2/common-hal/microcontroller/Pin.c +++ b/ports/esp32s2/common-hal/microcontroller/Pin.c @@ -55,6 +55,7 @@ STATIC void floating_gpio_reset(gpio_num_t pin_number) { .intr_type = GPIO_INTR_DISABLE, }; gpio_config(&cfg); + PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[pin_number], 0); } void never_reset_pin_number(gpio_num_t pin_number) { |
