Skip to content

Commit 6d5ffc6

Browse files
committed
is_free should not check never_reset
1 parent 766e79a commit 6d5ffc6

File tree

1 file changed

+1
-1
lines changed
  • ports/esp32s2/common-hal/microcontroller

1 file changed

+1
-1
lines changed

ports/esp32s2/common-hal/microcontroller/Pin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool pin_number_is_free(gpio_num_t pin_number) {
134134

135135
uint8_t offset = pin_number / 32;
136136
uint32_t mask = 1 << (pin_number % 32);
137-
return (never_reset_pins[offset] & mask) == 0 && (in_use[offset] & mask) == 0;
137+
return (in_use[offset] & mask) == 0;
138138
}
139139

140140
bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t *pin) {

0 commit comments

Comments
 (0)