aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/dfu_reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/dfu_reboot.c')
-rw-r--r--src/stm32/dfu_reboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stm32/dfu_reboot.c b/src/stm32/dfu_reboot.c
index 04952a48..68f023d1 100644
--- a/src/stm32/dfu_reboot.c
+++ b/src/stm32/dfu_reboot.c
@@ -31,7 +31,7 @@
void
dfu_reboot(void)
{
- if (!CONFIG_STM32_DFU_ROM_ADDRESS)
+ if (!CONFIG_STM32_DFU_ROM_ADDRESS || !CONFIG_HAVE_BOOTLOADER_REQUEST)
return;
irq_disable();
uint64_t *bflag = (void*)USB_BOOT_FLAG_ADDR;
@@ -46,7 +46,7 @@ dfu_reboot(void)
void
dfu_reboot_check(void)
{
- if (!CONFIG_STM32_DFU_ROM_ADDRESS)
+ if (!CONFIG_STM32_DFU_ROM_ADDRESS || !CONFIG_HAVE_BOOTLOADER_REQUEST)
return;
if (*(uint64_t*)USB_BOOT_FLAG_ADDR != USB_BOOT_FLAG)
return;