diff --git a/ports/espressif/common-hal/microcontroller/Pin.c b/ports/espressif/common-hal/microcontroller/Pin.c index 462fef3ca1..4648fec64d 100644 --- a/ports/espressif/common-hal/microcontroller/Pin.c +++ b/ports/espressif/common-hal/microcontroller/Pin.c @@ -95,8 +95,8 @@ void reset_all_pins(void) { } floating_gpio_reset(i); } - in_use[0] = 0; - in_use[1] = 0; + in_use[0] = never_reset_pins[0]; + in_use[1] = never_reset_pins[1]; } void claim_pin_number(gpio_num_t pin_number) {