Add RUNMODE_UF2 handling for SAMD

This commit is contained in:
Blake Ramsdell 2023-08-06 13:46:34 +00:00
parent 6b36bf59e3
commit 432f928286
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ void common_hal_mcu_enable_interrupts(void) {
} }
void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) { void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
if (runmode == RUNMODE_BOOTLOADER) { if ((runmode == RUNMODE_BOOTLOADER) || (runmode == RUNMODE_UF2)) {
if (!bootloader_available()) { if (!bootloader_available()) {
mp_raise_ValueError(translate("Cannot reset into bootloader because no bootloader is present")); mp_raise_ValueError(translate("Cannot reset into bootloader because no bootloader is present"));
} }