diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-13 11:39:41 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-13 11:39:41 +0000 |
commit | 58167f5d4db1251aef80230e893eac5509724975 (patch) | |
tree | d0b2a21eb52ba9cdcdb8432631b983653a3bbc7b /LUFA/Drivers/USB/LowLevel/USBController.c | |
parent | def0e0ff1b10a1c101885e83624a418e24be8648 (diff) | |
download | lufa-58167f5d4db1251aef80230e893eac5509724975.tar.gz lufa-58167f5d4db1251aef80230e893eac5509724975.tar.bz2 lufa-58167f5d4db1251aef80230e893eac5509724975.zip |
Fixed SET FEATURE and CLEAR FEATURE control requests directed at an unconfigured endpoint causing request timeouts.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/USBController.c')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/USBController.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/USBController.c b/LUFA/Drivers/USB/LowLevel/USBController.c index 907e2bab0..7488a3003 100644 --- a/LUFA/Drivers/USB/LowLevel/USBController.c +++ b/LUFA/Drivers/USB/LowLevel/USBController.c @@ -250,9 +250,9 @@ void USB_ResetInterface(void) USB_INT_Enable(USB_INT_VBUS); #endif - #if defined(CONTROL_ONLY_DEVICE) - UENUM = ENDPOINT_CONTROLEP; - #endif + Endpoint_ConfigureEndpoint(ENDPOINT_CONTROLEP, EP_TYPE_CONTROL, + ENDPOINT_DIR_OUT, USB_ControlEndpointSize, + ENDPOINT_BANK_SINGLE); } else if (USB_CurrentMode == USB_MODE_HOST) { |