Oops - restore conditional calls to USB_USBTask() in the Mass Storage class driver for the non-stream loops.

This commit is contained in:
Dean Camera 2011-09-05 22:22:19 +00:00
parent e64f4b0cd9
commit 94e0a0058a
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}