diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-28 22:51:03 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-28 22:51:03 +0000 |
commit | 2d49c09b384375298a4995b79c4b29e8d9390cd6 (patch) | |
tree | 2a48acd089a4f21e75e8c8e69d08ad5b8baa5fa5 /LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c | |
parent | b120c4e4cda5b5ed12a61697b5ab33d4dd0a70e8 (diff) | |
download | lufa-2d49c09b384375298a4995b79c4b29e8d9390cd6.tar.gz lufa-2d49c09b384375298a4995b79c4b29e8d9390cd6.tar.bz2 lufa-2d49c09b384375298a4995b79c4b29e8d9390cd6.zip |
Move Set Feature and Clear Feature control request feature selector values into their own enum.
Diffstat (limited to 'LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c')
-rw-r--r-- | LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c b/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c index 1c8bd5b6a..93b4440bc 100644 --- a/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c +++ b/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c @@ -346,7 +346,7 @@ static void USB_Device_ClearSetFeature(void) { #if !defined(NO_DEVICE_REMOTE_WAKEUP) case REQREC_DEVICE: - if ((uint8_t)USB_ControlRequest.wValue == FEATURE_REMOTE_WAKEUP) + if ((uint8_t)USB_ControlRequest.wValue == FEATURE_SEL_DeviceRemoteWakeup) USB_RemoteWakeupEnabled = (USB_ControlRequest.bRequest == REQ_SetFeature); else return; @@ -355,7 +355,7 @@ static void USB_Device_ClearSetFeature(void) #endif #if !defined(CONTROL_ONLY_DEVICE) case REQREC_ENDPOINT: - if ((uint8_t)USB_ControlRequest.wValue == FEATURE_ENDPOINT_HALT) + if ((uint8_t)USB_ControlRequest.wValue == FEATURE_SEL_EndpointHalt) { uint8_t EndpointIndex = ((uint8_t)USB_ControlRequest.wIndex & ENDPOINT_EPNUM_MASK); |