nrf: reset_pin_number: reset pin clears never-reset, mirroring samd

This commit is contained in:
Jeff Epler 2020-08-11 14:16:05 -05:00
parent 760a171903
commit 32fc8b0676

View File

@ -93,6 +93,7 @@ void reset_pin_number(uint8_t pin_number) {
// Clear claimed bit.
claimed_pins[nrf_pin_port(pin_number)] &= ~(1 << nrf_relative_pin_number(pin_number));
never_reset_pins[nrf_pin_port(pin_number)] &= ~(1 << nrf_relative_pin_number(pin_number));
#ifdef MICROPY_HW_NEOPIXEL
if (pin_number == MICROPY_HW_NEOPIXEL->number) {