diff options
| author | Dan Halbert <halbert@halwitz.org> | 2021-02-15 20:03:53 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2021-02-15 20:03:53 -0500 |
| commit | 93d788543c2f1f688a9e74d9984f63948e76a598 (patch) | |
| tree | 6cdce3c17a161d42199bd9a925774bc891ff9180 /ports/esp32s2/common-hal | |
| parent | d54b5861a30b1b1a352e1c22fc67e729ec95390d (diff) | |
| parent | 5ccbb0be62bdf3731421dab05e8ec3524158c274 (diff) | |
Merge remote-tracking branch 'adafruit/main' into secondary-cdc
Diffstat (limited to 'ports/esp32s2/common-hal')
| -rw-r--r-- | ports/esp32s2/common-hal/microcontroller/Pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32s2/common-hal/microcontroller/Pin.c b/ports/esp32s2/common-hal/microcontroller/Pin.c index fca89ce8e..ff6d0ed35 100644 --- a/ports/esp32s2/common-hal/microcontroller/Pin.c +++ b/ports/esp32s2/common-hal/microcontroller/Pin.c @@ -134,7 +134,7 @@ bool pin_number_is_free(gpio_num_t pin_number) { uint8_t offset = pin_number / 32; uint32_t mask = 1 << (pin_number % 32); - return (never_reset_pins[offset] & mask) == 0 && (in_use[offset] & mask) == 0; + return (in_use[offset] & mask) == 0; } bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t *pin) { |
