projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed all Device mode LowLevel demos and Device Class drivers so that the control...
[pub/lufa.git]
/
Demos
/
Device
/
LowLevel
/
MassStorage
/
MassStorage.c
diff --git
a/Demos/Device/LowLevel/MassStorage/MassStorage.c
b/Demos/Device/LowLevel/MassStorage/MassStorage.c
index
4b0b582
..
3bf2af1
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/MassStorage.c
+++ b/
Demos/Device/LowLevel/MassStorage/MassStorage.c
@@
-133,11
+133,10
@@
void EVENT_USB_Device_UnhandledControlRequest(void)
if (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
{
Endpoint_ClearSETUP();
if (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
{
Endpoint_ClearSETUP();
+ Endpoint_ClearStatusStage();
/* Indicate that the current transfer should be aborted */
IsMassStoreReset = true;
/* Indicate that the current transfer should be aborted */
IsMassStoreReset = true;
-
- Endpoint_ClearStatusStage();
}
break;
}
break;
@@
-149,8
+148,7
@@
void EVENT_USB_Device_UnhandledControlRequest(void)
/* Indicate to the host the number of supported LUNs (virtual disks) on the device */
Endpoint_Write_Byte(TOTAL_LUNS - 1);
/* Indicate to the host the number of supported LUNs (virtual disks) on the device */
Endpoint_Write_Byte(TOTAL_LUNS - 1);
- Endpoint_ClearIN();
-
+ Endpoint_ClearIN();
Endpoint_ClearStatusStage();
}
Endpoint_ClearStatusStage();
}