mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
sizeof(*) is sizeof first array element
This commit is contained in:
parent
9e94ba9803
commit
69ef9d57eb
@ -344,8 +344,7 @@ FLASH S_usb_device_descriptor usb_dev_desc_composite =
|
||||
, USB_STRING_MAN
|
||||
, USB_STRING_PRODUCT
|
||||
, USB_STRING_SERIAL
|
||||
, sizeof(usb_dev_config_order)
|
||||
//, (sizeof(usb_dev_config_order)/sizeof(*usb_dev_config_order)) //TODO:was this right?
|
||||
, (sizeof(usb_dev_config_order)/sizeof(*usb_dev_config_order)) //sizeof(*) is sizeof first element
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user