summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormicroDev <70126934+microDev1@users.noreply.github.com>2020-12-08 18:00:58 +0530
committermicroDev <70126934+microDev1@users.noreply.github.com>2020-12-08 18:00:58 +0530
commit2f95c94ad838f25ad96162435b8abab098484bde (patch)
tree627ae5cf0126ccbee4da80ba0ec7540cc1d04296
parent7250925b98a111c1c701424f31ac2f3664f4c9da (diff)
esp32s2 - update common_hal_mcu_reset
-rw-r--r--ports/esp32s2/common-hal/microcontroller/__init__.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/esp32s2/common-hal/microcontroller/__init__.c b/ports/esp32s2/common-hal/microcontroller/__init__.c
index b7bea4e6b..e425cbf54 100644
--- a/ports/esp32s2/common-hal/microcontroller/__init__.c
+++ b/ports/esp32s2/common-hal/microcontroller/__init__.c
@@ -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