Merge pull request #3804 from microDev1/s2-reset

ESP32S2: Fix microcontroller.reset()
This commit is contained in:
Scott Shawcroft 2020-12-08 11:21:29 -08:00 committed by GitHub
commit 93fade24ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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