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

@ -48,8 +48,7 @@ bool Pipe_ConfigurePipe(const uint8_t Number, const uint8_t Type, const uint8_t
UPCFG0X = ((Type << EPTYPE0) | Token | ((EndpointNumber & PIPE_EPNUM_MASK) << PEPNUM0));
UPCFG1X = ((1 << ALLOC) | Banks | Pipe_BytesToEPSizeMask(Size));
if (Token == PIPE_TOKEN_IN)
Pipe_SetInfiniteINRequests();
Pipe_SetInfiniteINRequests();
return Pipe_IsConfigured();
}