aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-13 22:40:08 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-13 22:40:08 +0000
commit0d5baf9bb3e88ebcbc53cc9a71566582d585f7dd (patch)
tree625a4e7722d2ddb1b6e7ab2038cc560fad293cf7
parent4904b10ef689a11b420c0a32da747533f4378712 (diff)
downloadlufa-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).
-rw-r--r--LUFA/ChangeLog.txt1
-rw-r--r--LUFA/Drivers/USB/LowLevel/DevChapter9.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/LUFA/ChangeLog.txt b/LUFA/ChangeLog.txt
index 1833596f3..d86805578 100644
--- a/LUFA/ChangeLog.txt
+++ b/LUFA/ChangeLog.txt
@@ -13,6 +13,7 @@
* - Fixed RNDISEthernet not working under Linux due to Linux requiring an "optional" request which was unhandled
* - Fixed Mouse and Keyboard device demos not acting in accordance with the HID specification for idle periods (thanks to Brian Dickman)
* - Removed support for endpoint/pipe non-control interrupts; these did not act in the way users expected, and had many subtle issues
+ * - Fixed Device Mode not handling Set Feature and Clear Feature Chapter 9 requests that are addressed to the device (thanks to Brian Dickman)
*
*
* \section Sec_ChangeLog090510 Version 090510
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;