change xfer_cb return type from void to bool

This commit is contained in:
hathach
2020-09-06 12:11:07 +07:00
parent 15ad585e67
commit b3e81673c0
10 changed files with 26 additions and 14 deletions
+2 -2
View File
@@ -48,7 +48,7 @@
#define DRIVER_NAME(_name)
#endif
static host_class_driver_t const usbh_class_drivers[] =
static usbh_class_driver_t const usbh_class_drivers[] =
{
#if CFG_TUH_CDC
{
@@ -442,7 +442,7 @@ bool enum_task(hcd_event_t* event)
dev0->state = TUSB_DEVICE_STATE_UNPLUG;
//------------- connected/disconnected directly with roothub -------------//
if ( dev0->hub_addr == 0)
if (dev0->hub_addr == 0)
{
// wait until device is stable. Increase this if the first 8 bytes is failed to get
osal_task_delay(POWER_STABLE_DELAY);