We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b32d54 commit 49b8579Copy full SHA for 49b8579
ports/espressif/supervisor/port.c
@@ -51,6 +51,8 @@
51
#include "supervisor/background_callback.h"
52
#include "supervisor/memory.h"
53
#include "supervisor/shared/tick.h"
54
+#include "shared-bindings/microcontroller/__init__.h"
55
+#include "shared-bindings/microcontroller/RunMode.h"
56
#include "shared-bindings/rtc/__init__.h"
57
58
#include "peripherals/rmt.h"
@@ -263,6 +265,7 @@ void reset_port(void) {
263
265
}
264
266
267
void reset_to_bootloader(void) {
268
+ common_hal_mcu_on_next_reset(RUNMODE_UF2);
269
esp_restart();
270
271
0 commit comments