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.
2 parents 19b59b0 + ea30a8a commit dab35f7Copy full SHA for dab35f7
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"
@@ -287,6 +289,7 @@ void reset_port(void) {
287
289
}
288
290
291
void reset_to_bootloader(void) {
292
+ common_hal_mcu_on_next_reset(RUNMODE_BOOTLOADER);
293
esp_restart();
294
295
0 commit comments