Don't set alternate setting because there is none.

This commit is contained in:
László Monda
2016-02-29 16:54:58 +01:00
parent 50d64d4fe3
commit d41020f861
-1
View File
@@ -79,7 +79,6 @@ usb_status_t UsbGenericHidSetConfiguration(class_handle_t handle, uint8_t config
usb_status_t UsbGenericHidSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting) usb_status_t UsbGenericHidSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting)
{ {
if (USB_GENERIC_HID_INTERFACE_INDEX == interface) { if (USB_GENERIC_HID_INTERFACE_INDEX == interface) {
UsbCompositeDevice.currentInterfaceAlternateSetting[interface] = alternateSetting;
return UsbReceiveData(); return UsbReceiveData();
} }
return kStatus_USB_Error; return kStatus_USB_Error;