From 1ea341c9ec1fa468857b62f5f1397324ca1e4bb3 Mon Sep 17 00:00:00 2001 From: dufresne_andy Date: Tue, 30 Apr 2024 11:56:41 +0800 Subject: [PATCH] Description:fix set config error Feature or Bugfix:Bugfix Binary Source: No Signed-off-by: dufresne_andy --- usb/hdi_service/src/usb_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb/hdi_service/src/usb_impl.cpp b/usb/hdi_service/src/usb_impl.cpp index 70a22098bd..a28c115734 100644 --- a/usb/hdi_service/src/usb_impl.cpp +++ b/usb/hdi_service/src/usb_impl.cpp @@ -203,7 +203,7 @@ void UsbImpl::MakeSetActiveUsbControlParams( controlParams->request = USB_DDK_REQ_SET_CONFIGURATION; controlParams->target = USB_REQUEST_TARGET_DEVICE; controlParams->reqType = USB_REQUEST_TYPE_STANDARD; - controlParams->directon = USB_REQUEST_DIR_FROM_DEVICE; + controlParams->directon = USB_REQUEST_DIR_TO_DEVICE; controlParams->value = value; controlParams->index = index; controlParams->data = buffer; -- Gitee