From: Dean Camera Date: Mon, 5 Sep 2011 22:22:19 +0000 (+0000) Subject: Oops - restore conditional calls to USB_USBTask() in the Mass Storage class driver... X-Git-Tag: LUFA-111009~18 X-Git-Url: http://git.linex4red.de/pub/lufa.git/commitdiff_plain/94e0a0058a33d09cc83be94d32dcc7ab9e2eb61a?ds=inline Oops - restore conditional calls to USB_USBTask() in the Mass Storage class driver for the non-stream loops. --- diff --git a/LUFA/Drivers/USB/Class/Device/MassStorage.c b/LUFA/Drivers/USB/Class/Device/MassStorage.c index 45d011224..9d5ff7d20 100644 --- a/LUFA/Drivers/USB/Class/Device/MassStorage.c +++ b/LUFA/Drivers/USB/Class/Device/MassStorage.c @@ -202,6 +202,10 @@ static void MS_Device_ReturnCommandStatus(USB_ClassInfo_MS_Device_t* const MSInt while (Endpoint_IsStalled()) { + #if !defined(INTERRUPT_CONTROL_ENDPOINT) + USB_USBTask(); + #endif + if (MSInterfaceInfo->State.IsMassStoreReset) return; } @@ -210,6 +214,10 @@ static void MS_Device_ReturnCommandStatus(USB_ClassInfo_MS_Device_t* const MSInt while (Endpoint_IsStalled()) { + #if !defined(INTERRUPT_CONTROL_ENDPOINT) + USB_USBTask(); + #endif + if (MSInterfaceInfo->State.IsMassStoreReset) return; }