8000 nrf: microcontroller: use port reset path · adafruit/circuitpython@5edc29c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5edc29c

Browse files
committed
nrf: microcontroller: use port reset path
For `microcontroller.reset()`, don't manually call NVIC_SystemReset(). Instead, call the `port_reset()` in case the port wants to do any cleanup. Signed-off-by: Sean Cross <sean@xobs.io>
1 parent c7efc94 commit 5edc29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
9494

9595
void common_hal_mcu_reset(void) {
9696
filesystem_flush();
97-
NVIC_SystemReset();
97+
reset_cpu();
9898
}
9999

100100
// The singleton microcontroller.Processor object, bound to microcontroller.cpu

0 commit comments

Comments
 (0)
0