Make sure the composite device is attached before setting the kStatus_USB_Success flag
This commit is contained in:
@@ -48,7 +48,9 @@ usb_status_t UsbBasicKeyboardCallback(class_handle_t handle, uint32_t event, voi
|
||||
switch (event) {
|
||||
// This report is received when the report has been sent
|
||||
case kUSB_DeviceHidEventSendResponse:
|
||||
error = kStatus_USB_Success;
|
||||
if (UsbCompositeDevice.attach) {
|
||||
error = kStatus_USB_Success;
|
||||
}
|
||||
break;
|
||||
case kUSB_DeviceHidEventRecvResponse:
|
||||
case kUSB_DeviceHidEventGetReport:
|
||||
|
||||
Reference in New Issue
Block a user