diff options
| author | hathach <[email protected]> | 2018-06-18 14:31:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-06-18 14:31:15 +0700 |
| commit | f8e7695fe932e79dfb590d96762db68cca1daf0c (patch) | |
| tree | 333b5041c01805fbb1202a766bfd7f5393ba09f9 /src/device | |
| parent | 38ac69b3703519a684a03bf5cccb6198cca2ff16 (diff) | |
clean up
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 6718c0876..74079d215 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -608,7 +608,7 @@ tusb_error_t usbd_open_edpt_pair(uint8_t rhport, tusb_desc_endpoint_t const* p_d TU_ASSERT( dcd_edpt_open(rhport, p_desc_ep), TUSB_ERROR_DCD_OPEN_PIPE_FAILED );
- if ( p_desc_ep->bEndpointAddress & TUSB_DIR_IN_MASK )
+ if ( edpt_dir(p_desc_ep->bEndpointAddress) == TUSB_DIR_IN )
{
(*ep_in) = p_desc_ep->bEndpointAddress;
}else
|
