sizeof(*) is sizeof first array element
This commit is contained in:
parent
9e94ba9803
commit
69ef9d57eb
1 changed files with 1 additions and 2 deletions
|
@ -344,8 +344,7 @@ FLASH S_usb_device_descriptor usb_dev_desc_composite =
|
||||||
, USB_STRING_MAN
|
, USB_STRING_MAN
|
||||||
, USB_STRING_PRODUCT
|
, USB_STRING_PRODUCT
|
||||||
, USB_STRING_SERIAL
|
, USB_STRING_SERIAL
|
||||||
, sizeof(usb_dev_config_order)
|
, (sizeof(usb_dev_config_order)/sizeof(*usb_dev_config_order)) //sizeof(*) is sizeof first element
|
||||||
//, (sizeof(usb_dev_config_order)/sizeof(*usb_dev_config_order)) //TODO:was this right?
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue