diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-12-08 11:21:29 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-08 11:21:29 -0800 |
| commit | 93fade24efb964a049e2fcbcfe5cda51008ab079 (patch) | |
| tree | 2af571dd4de2b2b81f67331aebf0bef9e7fa542c /ports | |
| parent | 1df033465a366724fbbab5ff48082593722f7c41 (diff) | |
| parent | 2f95c94ad838f25ad96162435b8abab098484bde (diff) | |
Merge pull request #3804 from microDev1/s2-reset
ESP32S2: Fix microcontroller.reset()
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/esp32s2/common-hal/microcontroller/__init__.c | 3 |
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 |
