Browse Source

[HUST CSE][NXP][imx6sx] memset函数使用错误

yxf 2 years ago
parent
commit
4ab43ca98f

+ 1 - 1
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);