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 6b36bf5 + 432f928 commit f3320e4Copy full SHA for f3320e4
ports/atmel-samd/common-hal/microcontroller/__init__.c
@@ -63,7 +63,7 @@ void common_hal_mcu_enable_interrupts(void) {
63
}
64
65
void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
66
- if (runmode == RUNMODE_BOOTLOADER) {
+ if ((runmode == RUNMODE_BOOTLOADER) || (runmode == RUNMODE_UF2)) {
67
if (!bootloader_available()) {
68
mp_raise_ValueError(translate("Cannot reset into bootloader because no bootloader is present"));
69
0 commit comments