Skip to content

Commit 432f928

Browse files
committed
Add RUNMODE_UF2 handling for SAMD
1 parent 6b36bf5 commit 432f928

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)