ccid_df: Ensure all three endpoints are correctly set
The old code used to do OSMO_ASSERT(), i.e. checking if the endpoint number was != 0. However, now we're checking if it's != 0xFF, as the default initialization is 0xFF, and an unset endpoint can be detected this way. Change-Id: I7d334724a4c6b89ef8faa49bed49ed57ea216ff9
This commit is contained in:
parent
7603390bd0
commit
1209152b24
|
@ -91,9 +91,9 @@ static int32_t ccid_df_enable(struct usbdf_driver *drv, struct usbd_descriptors
|
|||
ep = usb_find_ep_desc(usb_desc_next(desc->sod), desc->eod);
|
||||
}
|
||||
|
||||
ASSERT(func_data->func_ep_irq);
|
||||
ASSERT(func_data->func_ep_in);
|
||||
ASSERT(func_data->func_ep_out);
|
||||
ASSERT(func_data->func_ep_irq != 0xff);
|
||||
ASSERT(func_data->func_ep_in != 0xff);
|
||||
ASSERT(func_data->func_ep_out != 0xff);
|
||||
|
||||
_ccid_df_funcd.enabled = true;
|
||||
return ERR_NONE;
|
||||
|
|
Loading…
Reference in New Issue