diff options
| author | hathach <[email protected]> | 2018-03-11 21:16:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-11 21:16:51 +0700 |
| commit | 229a7a23b82d90e34c6fd5b52ef739d3f9668dcb (patch) | |
| tree | 94d90397f6acf28ccbfdc58fb141122763ec8acb /tinyusb/class/custom_class_host.c | |
| parent | d71334c34822c1e7b5b4ecfdcc44c8c3c3843d61 (diff) | |
shorten TUSB_DESC_TYPE*
Diffstat (limited to 'tinyusb/class/custom_class_host.c')
| -rw-r--r-- | tinyusb/class/custom_class_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/class/custom_class_host.c b/tinyusb/class/custom_class_host.c index ce9c5d019..be660d9db 100644 --- a/tinyusb/class/custom_class_host.c +++ b/tinyusb/class/custom_class_host.c @@ -117,7 +117,7 @@ tusb_error_t cush_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con for(uint32_t i=0; i<2; i++) { tusb_descriptor_endpoint_t const *p_endpoint = (tusb_descriptor_endpoint_t const *) p_desc; - ASSERT_INT(TUSB_DESC_TYPE_ENDPOINT, p_endpoint->bDescriptorType, TUSB_ERROR_INVALID_PARA); + ASSERT_INT(TUSB_DESC_ENDPOINT, p_endpoint->bDescriptorType, TUSB_ERROR_INVALID_PARA); pipe_handle_t * p_pipe_hdl = ( p_endpoint->bEndpointAddress & TUSB_DIR_IN_MASK ) ? &custom_interface[dev_addr-1].pipe_in : &custom_interface[dev_addr-1].pipe_out; |
