Skip to content

Commit 93fade2

Browse files
authored
Merge pull request #3804 from microDev1/s2-reset
ESP32S2: Fix microcontroller.reset()
2 parents 1df0334 + 2f95c94 commit 93fade2

File tree

1 file changed

+1
-2
lines changed
  • ports/esp32s2/common-hal/microcontroller

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
7474

7575
void common_hal_mcu_reset(void) {
7676
filesystem_flush(); //TODO: implement as part of flash improvements
77-
// NVIC_SystemReset();
78-
while(1);
77+
esp_restart();
7978
}
8079

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

0 commit comments

Comments
 (0)