summaryrefslogtreecommitdiff
path: root/usb/device/core
diff options
context:
space:
mode:
Diffstat (limited to 'usb/device/core')
-rw-r--r--usb/device/core/USBD_UDPHS.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usb/device/core/USBD_UDPHS.c b/usb/device/core/USBD_UDPHS.c
index f02fa55..4ea6d1a 100644
--- a/usb/device/core/USBD_UDPHS.c
+++ b/usb/device/core/USBD_UDPHS.c
@@ -41,6 +41,7 @@
#include <usb/common/core/USBEndpointDescriptor.h>
#include <usb/common/core/USBGenericRequest.h>
#include <usb/common/core/USBFeatureRequest.h>
+#include <usb/device/dfu/dfu.h>
#include <stdio.h>
@@ -1119,6 +1120,11 @@ void USBD_IrqHandler(void)
// TRACE_DEBUG_WP("EoB ");
+#if defined(BOARD_USB_DFU) && !defined(dfu)
+ if (g_dfu.past_manifest)
+ USBDFU_SwitchToApp();
+#endif
+
// The device enters the Default state
deviceState = USBD_STATE_DEFAULT;
// MCK + UDPCK are already enabled
personal git repositories of Harald Welte. Your mileage may vary