Bug Report: Minor errors in USB Host code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bug Report: Minor errors in USB Host code

858 次查看
chrissolomon
Contributor III

Hi,

I'm reviewing the changes in MQX 4.1.0 and spotted a couple of minor errors in the USB host code - (actually I am using v4.8.4 of the GCC compiler and these come out as warnings):

usb_host_msd_bo.c Line 109 -

   USB_mem_zero(intf_ptr, sizeof(USB_MASS_CLASS_INTF_STRUCT_PTR));

Looks like this is a typo - the intp_ptr is a pointer to a USB_MASS_CLASS_INTF_STRUCT, so it looks like the intention was that the whole structure be zeroed, where as in reality only the first 4 bytes are being zeroed.

Same thing in usb_host_printer.c at Line 468

   USB_mem_zero (prt_intf,sizeof(PRINTER_INTERFACE_STRUCT_PTR));

I don't think these are going to cause any problems, but I figured if you are still using version 4.7 of the compiler you might not have see these, and they look like quick and easy fixes.

Thanks

Chris

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

648 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Chris:

Thank you for reporting this, this will be fixed in next release

Have a great day

Daniel

0 项奖励
回复