diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-13 22:40:08 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-13 22:40:08 +0000 |
commit | 0d5baf9bb3e88ebcbc53cc9a71566582d585f7dd (patch) | |
tree | 625a4e7722d2ddb1b6e7ab2038cc560fad293cf7 /LUFA/Drivers | |
parent | 4904b10ef689a11b420c0a32da747533f4378712 (diff) | |
download | lufa-0d5baf9bb3e88ebcbc53cc9a71566582d585f7dd.tar.gz lufa-0d5baf9bb3e88ebcbc53cc9a71566582d585f7dd.tar.bz2 lufa-0d5baf9bb3e88ebcbc53cc9a71566582d585f7dd.zip |
Fixed Device Mode not handling Set Feature and Clear Feature Chapter 9 requests that are addressed to the device (thanks to Brian Dickman).
Diffstat (limited to 'LUFA/Drivers')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/DevChapter9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c index 6ecadb00d..785d10fac 100644 --- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c +++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c @@ -62,7 +62,8 @@ void USB_Device_ProcessControlPacket(void) break;
case REQ_ClearFeature:
case REQ_SetFeature:
- if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_ENDPOINT))
+ if ((bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_DEVICE)) ||
+ (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_ENDPOINT)))
{
USB_Device_ClearSetFeature();
RequestHandled = true;
|