We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a424dbc + 5ccbb0b commit c47b2adCopy full SHA for c47b2ad
ports/esp32s2/common-hal/microcontroller/Pin.c
@@ -134,7 +134,7 @@ bool pin_number_is_free(gpio_num_t pin_number) {
134
135
uint8_t offset = pin_number / 32;
136
uint32_t mask = 1 << (pin_number % 32);
137
- return (never_reset_pins[offset] & mask) == 0 && (in_use[offset] & mask) == 0;
+ return (in_use[offset] & mask) == 0;
138
}
139
140
bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t *pin) {
0 commit comments