Skip to content

Commit ddf633e

Browse files
committed
bootloader/riotboot_dfu: move ztimer_init() prior to usbus start
1 parent 8a340fe commit ddf633e

File tree

1 file changed

+3
-3
lines changed
  • bootloaders/riotboot_dfu

1 file changed

+3
-3
lines changed

bootloaders/riotboot_dfu/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ void kernel_init(void)
6464
}
6565
}
6666

67+
/* Init ztimer before starting DFU mode */
68+
ztimer_init();
69+
6770
/* Flash the unused slot if magic word is set */
6871
riotboot_usb_dfu_init(0);
6972

7073
if (slot != -1 && !_bootloader_alternative_mode()) {
7174
riotboot_slot_jump(slot);
7275
}
7376

74-
/* Init ztimer before starting DFU mode */
75-
ztimer_init();
76-
7777
/* Nothing to boot, stay in DFU mode to flash a slot */
7878
riotboot_usb_dfu_init(1);
7979
}

0 commit comments

Comments
 (0)