Request UF2 bootloader when resetting using the 'serial trick'

This commit is contained in:
Jeff Epler 2022-01-17 17:14:31 -06:00
parent 9b32d549f0
commit 49b8579bcd
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,8 @@
#include "supervisor/background_callback.h"
#include "supervisor/memory.h"
#include "supervisor/shared/tick.h"
#include "shared-bindings/microcontroller/__init__.h"
#include "shared-bindings/microcontroller/RunMode.h"
#include "shared-bindings/rtc/__init__.h"
#include "peripherals/rmt.h"
@ -263,6 +265,7 @@ void reset_port(void) {
}
void reset_to_bootloader(void) {
common_hal_mcu_on_next_reset(RUNMODE_UF2);
esp_restart();
}