Skip to content

Commit f3320e4

Browse files
authored
Merge pull request #8264 from bcr/bcr-runmode-uf2
Add RUNMODE_UF2 handling for SAMD
2 parents 6b36bf5 + 432f928 commit f3320e4

File tree

1 file changed

+1
-1
lines changed
  • ports/atmel-samd/common-hal/microcontroller

1 file changed

+1
-1
lines changed

ports/atmel-samd/common-hal/microcontroller/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void common_hal_mcu_enable_interrupts(void) {
6363
}
6464

6565
void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
66-
if (runmode == RUNMODE_BOOTLOADER) {
66+
if ((runmode == RUNMODE_BOOTLOADER) || (runmode == RUNMODE_UF2)) {
6767
if (!bootloader_available()) {
6868
mp_raise_ValueError(translate("Cannot reset into bootloader because no bootloader is present"));
6969
}

0 commit comments

Comments
 (0)