aboutsummaryrefslogtreecommitdiff
path: root/common/dfu.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/dfu.c')
-rw-r--r--common/dfu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/dfu.c b/common/dfu.c
index d23cf67f194..16bd1ba588a 100644
--- a/common/dfu.c
+++ b/common/dfu.c
@@ -98,6 +98,9 @@ int run_usb_dnl_gadget(int usbctrl_index, char *usb_dnl_gadget)
}
#endif
+ if (dfu_reinit_needed)
+ goto exit;
+
WATCHDOG_RESET();
usb_gadget_handle_interrupts(usbctrl_index);
}