Skip to content

Commit

Permalink
Merge pull request #3804 from microDev1/s2-reset
Browse files Browse the repository at this point in the history
ESP32S2: Fix microcontroller.reset()
  • Loading branch information
tannewt authored Dec 8, 2020
2 parents 1df0334 + 2f95c94 commit 93fade2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ports/esp32s2/common-hal/microcontroller/__init__.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {

void common_hal_mcu_reset(void) {
filesystem_flush(); //TODO: implement as part of flash improvements
// NVIC_SystemReset();
while(1);
esp_restart();
}

// The singleton microcontroller.Processor object, bound to microcontroller.cpu
Expand Down

0 comments on commit 93fade2

Please sign in to comment.