Skip to content

Commit 32fc8b0

Browse files
committed
nrf: reset_pin_number: reset pin clears never-reset, mirroring samd
1 parent 760a171 commit 32fc8b0

File tree

1 file changed

+1
-0
lines changed
  • ports/nrf/common-hal/microcontroller

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ void reset_pin_number(uint8_t pin_number) {
9393

9494
// Clear claimed bit.
9595
claimed_pins[nrf_pin_port(pin_number)] &= ~(1 << nrf_relative_pin_number(pin_number));
96+
never_reset_pins[nrf_pin_port(pin_number)] &= ~(1 << nrf_relative_pin_number(pin_number));
9697

9798
#ifdef MICROPY_HW_NEOPIXEL
9899
if (pin_number == MICROPY_HW_NEOPIXEL->number) {

0 commit comments

Comments
 (0)