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:
parent
a3a04aa671
commit
bb23e55f11
5 changed files with 9 additions and 7 deletions
|
@ -218,9 +218,6 @@ void MassStorage_Task(void)
|
|||
Endpoint_ClearStall();
|
||||
Endpoint_SelectEndpoint(MASS_STORAGE_IN_EPNUM);
|
||||
Endpoint_ClearStall();
|
||||
|
||||
/* Clear the abort transfer flag */
|
||||
IsMassStoreReset = false;
|
||||
}
|
||||
|
||||
/* Indicate ready */
|
||||
|
@ -232,6 +229,9 @@ void MassStorage_Task(void)
|
|||
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
/* Clear the abort transfer flag */
|
||||
IsMassStoreReset = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue