Bug Report: Minor errors in USB Host code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bug Report: Minor errors in USB Host code

859件の閲覧回数
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 返信

649件の閲覧回数
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 件の賞賛
返信