clean up usbd auto desc

This commit is contained in:
hathach 2018-07-10 00:36:07 +07:00
parent 40de723d41
commit 15cd30629a
2 changed files with 2 additions and 3 deletions

View File

@ -254,7 +254,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
.bInterfaceClass = TUSB_CLASS_CDC,
.bInterfaceSubClass = CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL,
.bInterfaceProtocol = CDC_COMM_PROTOCOL_ATCOMMAND,
.iInterface = 0x04
.iInterface = 4
},
.header =
@ -352,7 +352,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
.bInterfaceClass = TUSB_CLASS_MSC,
.bInterfaceSubClass = MSC_SUBCLASS_SCSI,
.bInterfaceProtocol = MSC_PROTOCOL_BOT,
.iInterface = 0 // ITF_NUM_MSC + 3
.iInterface = 4 + CFG_TUD_CDC
},
.ep_out =

View File

@ -68,7 +68,6 @@ tusb_error_t usbd_open_edpt_pair(uint8_t rhport, tusb_desc_endpoint_t const* p_d
STASK_ASSERT_ERR( err );\
}\
/* No need to wait for status to complete therefore */ \
/* status phase must not call dcd_control_complete/dcd_xfer_complete*/ \
dcd_control_status(_rhport, _dir);\
}while(0)