version 1.244, 2020/03/14 03:01:36 |
version 1.245, 2020/05/31 17:52:58 |
Line 447 usbd_fill_iface_data(struct usbd_device |
|
Line 447 usbd_fill_iface_data(struct usbd_device |
|
break; |
break; |
} |
} |
/* passed end, or bad desc */ |
/* passed end, or bad desc */ |
printf("usbd_fill_iface_data: bad descriptor(s): %s\n", |
if (p < end) { |
ed->bLength == 0 ? "0 length" : |
if (ed->bLength == 0) { |
ed->bDescriptorType == UDESC_INTERFACE ? "iface desc": |
printf("%s: bad descriptor: 0 length\n", |
"out of data"); |
__func__); |
|
} else { |
|
printf("%s: bad descriptor: iface desc\n", |
|
__func__); |
|
} |
|
} else { |
|
printf("%s: no desc found\n", __func__); |
|
} |
goto bad; |
goto bad; |
found: |
found: |
ifc->ui_endpoints[endpt].ue_edesc = ed; |
ifc->ui_endpoints[endpt].ue_edesc = ed; |