aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/atmel_softpack_libraries
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-03-02 16:53:13 +0100
committerHarald Welte <laforge@gnumonks.org>2017-03-02 16:53:13 +0100
commit479e97e3382f72da1959276d8ec3a9defc5b75f5 (patch)
treeff5cc4e7d62a03d8255d482a36872f8cfd212a0c /firmware/atmel_softpack_libraries
parent203abf5f6e109d24f546cf495ba791594a55f52b (diff)
DFU: Add missing 'return' after handling generic USB control request
Diffstat (limited to 'firmware/atmel_softpack_libraries')
-rw-r--r--firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c b/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
index 5ba84c3..71529de 100644
--- a/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
+++ b/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
@@ -248,6 +248,7 @@ void USBDFU_DFU_RequestHandler(const USBGenericRequest *request)
USBGenericRequest_GetRecipient(request) != USBGenericRequest_INTERFACE) {
TRACE_DEBUG("std_ho_usbd ");
USBDDriver_RequestHandler(&usbdDriver, request);
+ return;
}
switch (g_dfu->state) {