summaryrefslogtreecommitdiff
path: root/tinyusb/host/hub.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-11 21:16:51 +0700
committerhathach <[email protected]>2018-03-11 21:16:51 +0700
commit229a7a23b82d90e34c6fd5b52ef739d3f9668dcb (patch)
tree94d90397f6acf28ccbfdc58fb141122763ec8acb /tinyusb/host/hub.c
parentd71334c34822c1e7b5b4ecfdcc44c8c3c3843d61 (diff)
shorten TUSB_DESC_TYPE*
Diffstat (limited to 'tinyusb/host/hub.c')
-rw-r--r--tinyusb/host/hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/host/hub.c b/tinyusb/host/hub.c
index 447867290..a5ae7ca57 100644
--- a/tinyusb/host/hub.c
+++ b/tinyusb/host/hub.c
@@ -169,7 +169,7 @@ tusb_error_t hub_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t cons
tusb_descriptor_endpoint_t const *p_endpoint;
p_endpoint = (tusb_descriptor_endpoint_t const *) descriptor_next( (uint8_t const*) p_interface_desc );
- SUBTASK_ASSERT(TUSB_DESC_TYPE_ENDPOINT == p_endpoint->bDescriptorType);
+ SUBTASK_ASSERT(TUSB_DESC_ENDPOINT == p_endpoint->bDescriptorType);
SUBTASK_ASSERT(TUSB_XFER_INTERRUPT == p_endpoint->bmAttributes.xfer);
hub_data[dev_addr-1].pipe_status = hcd_pipe_open(dev_addr, p_endpoint, TUSB_CLASS_HUB);