summaryrefslogtreecommitdiff
path: root/src/host/usbh.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-09-06 12:11:07 +0700
committerhathach <[email protected]>2020-09-06 12:11:07 +0700
commitb3e81673c0582a07a764981604a560ee3d310ef9 (patch)
tree4217a1ebea06224ea3826eec875845015d945297 /src/host/usbh.c
parent15ad585e674f14e247aa7e5f42fb84f90f14be8b (diff)
change xfer_cb return type from void to bool
Diffstat (limited to 'src/host/usbh.c')
-rw-r--r--src/host/usbh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index da35340ce..a7f6397cd 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -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);