summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryxf <[email protected]>2023-04-27 12:02:16 +0800
committerGitHub <[email protected]>2023-04-27 00:02:16 -0400
commit4ab43ca98ff4f43f495182f69334e589bb84daa2 (patch)
tree186dcc4f575dc8bc274cda10924095899fc281cb
parent8dfcf07c241405136f752666cfb80927c7999579 (diff)
[HUST CSE][NXP][imx6sx] memset函数使用错误
-rwxr-xr-xbsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c b/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c
index c4aa99ca78..5c96cfa3d9 100755
--- a/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c
+++ b/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c
@@ -183,7 +183,7 @@ uint_8 USB_DCI_Init(
printf_info("%s\n", __func__);
g_dci_controller_Id[controller_ID] = controller_ID;
- memset(qh_buf, 0x0, sizeof(qh_buf));
+ memset(qh_buf, 0x0, TOTAL_QHD_SIZE);
// Initialize hardware
status = usbd_mx6_dev_init(controller_ID);