Skip to content

Commit 7137f1b

Browse files
added never_reset to board_init
1 parent 448a96c commit 7137f1b

File tree

1 file changed

+2
-0
lines changed
  • ports/nrf/boards/bluemicro833

1 file changed

+2
-0
lines changed

ports/nrf/boards/bluemicro833/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include "nrf_gpio.h"
3434

3535
void board_init(void) {
36+
// "never_reset" the pin here because CircuitPython will try to reset pins after a VM run otherwise.
37+
never_reset_pin_number(POWER_SWITCH_PIN->number);
3638
// Turn on power to sensors and neopixels.
3739
nrf_gpio_cfg(POWER_SWITCH_PIN->number,
3840
NRF_GPIO_PIN_DIR_OUTPUT,

0 commit comments

Comments
 (0)