Use the correct handles for generic HID.

This commit is contained in:
László Monda
2016-03-03 10:58:26 +01:00
parent 5bcf07b1a6
commit 73518d8222

View File

@@ -51,7 +51,7 @@ static usb_status_t UsbDeviceCallback(usb_device_handle handle, uint32_t event,
UsbCompositeDevice.currentConfiguration = *temp8;
UsbMouseSetConfiguration(UsbCompositeDevice.mouseHandle, *temp8);
UsbKeyboardSetConfiguration(UsbCompositeDevice.keyboardHandle, *temp8);
UsbGenericHidSetConfiguration(UsbCompositeDevice.keyboardHandle, *temp8);
UsbGenericHidSetConfiguration(UsbCompositeDevice.genericHidHandle, *temp8);
error = kStatus_USB_Success;
break;
case kUSB_DeviceEventGetConfiguration:
@@ -66,7 +66,7 @@ static usb_status_t UsbDeviceCallback(usb_device_handle handle, uint32_t event,
UsbCompositeDevice.currentInterfaceAlternateSetting[interface] = alternateSetting;
UsbMouseSetInterface(UsbCompositeDevice.mouseHandle, interface, alternateSetting);
UsbKeyboardSetInterface(UsbCompositeDevice.keyboardHandle, interface, alternateSetting);
UsbGenericHidSetInterface(UsbCompositeDevice.keyboardHandle, interface, alternateSetting);
UsbGenericHidSetInterface(UsbCompositeDevice.genericHidHandle, interface, alternateSetting);
error = kStatus_USB_Success;
}
}