Skip to content

Commit 03335da

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 1f010f9 + f3320e4 commit 03335da

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)