Fixed MassStorage demo not clearing the reset flag when a Mass Storage Reset is issued while not processing a command.

This commit is contained in:
Dean Camera 2009-06-23 08:45:46 +00:00
parent a3a04aa671
commit bb23e55f11
5 changed files with 9 additions and 7 deletions

View file

@ -131,11 +131,11 @@ void MS_Device_USBTask(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
Endpoint_ClearStall();
Endpoint_SelectEndpoint(MSInterfaceInfo->Config.DataINEndpointNumber);
Endpoint_ClearStall();
MSInterfaceInfo->State.IsMassStoreReset = false;
}
}
}
MSInterfaceInfo->State.IsMassStoreReset = false;
}
static bool MS_Device_ReadInCommandBlock(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)