Skip to content

Commit bb26d85

Browse files
committed
Call boot_set_pending() after BlockDevice deinit to fix double initialization issue
1 parent d2268d2 commit bb26d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

envie_dfu/usbd_dfu_flash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ uint16_t Flash_If_Init(void)
107107
*/
108108
uint16_t Flash_If_DeInit(void)
109109
{
110-
boot_set_pending(false);
111110
flash.deinit();
112111
dfu_secondary_bd->deinit();
112+
boot_set_pending(false);
113113
return 0;
114114
}
115115

0 commit comments

Comments
 (0)