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:
Eric Wild 2019-10-01 15:17:58 +02:00 committed by Harald Welte
parent 7603390bd0
commit 1209152b24
1 changed files with 3 additions and 3 deletions

View File

@ -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;