Changed over manual loops waiting for endpoints to be ready to use the library Endpoint_WaitUntilReady() function for robustness. Fixes issues with terminated transfers on the host locking up USB devices.
This commit is contained in:
parent
4b35dd1670
commit
a9d5e129b7
9 changed files with 31 additions and 91 deletions
|
@ -70,7 +70,7 @@
|
|||
#define LEDMASK_USB_BUSY (LEDS_LED2)
|
||||
|
||||
/** Total number of logical drives within the device - must be non-zero. */
|
||||
#define TOTAL_LUNS 2
|
||||
#define TOTAL_LUNS 1
|
||||
|
||||
/** Blocks in each LUN, calculated from the total capacity divided by the total number of Logical Units in the device. */
|
||||
#define LUN_MEDIA_BLOCKS (VIRTUAL_MEMORY_BLOCKS / TOTAL_LUNS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue