Skip to content

Commit 5ccbb0b

Browse files
authored
Merge pull request #4205 from hierophect/esp32s2-fix-pinfree
ESP32S2: pin_number_is_free should not check never_reset tables
2 parents 2a467f1 + 6d5ffc6 commit 5ccbb0b

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)