1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

bootloader/riotboot_dfu: move ztimer_init() prior to usbus start

This commit is contained in:
Dylan Laduranty 2022-08-30 20:56:44 +02:00
parent 8a340fec11
commit ddf633eb99

View File

@ -64,6 +64,9 @@ void kernel_init(void)
}
}
/* Init ztimer before starting DFU mode */
ztimer_init();
/* Flash the unused slot if magic word is set */
riotboot_usb_dfu_init(0);
@ -71,9 +74,6 @@ void kernel_init(void)
riotboot_slot_jump(slot);
}
/* Init ztimer before starting DFU mode */
ztimer_init();
/* Nothing to boot, stay in DFU mode to flash a slot */
riotboot_usb_dfu_init(1);
}