summaryrefslogtreecommitdiff
path: root/src/class/msc
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-07 14:57:58 +0700
committerhathach <[email protected]>2018-12-07 14:57:58 +0700
commit366ab797769b77dbf353b101ba862b20084dbc02 (patch)
tree9b742c44b00412b0d97068d1c0daa573c2c6c338 /src/class/msc
parentd524da0c941783887eaea968e5e7f8cb63313451 (diff)
able to build host hid
Diffstat (limited to 'src/class/msc')
-rw-r--r--src/class/msc/msc_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/msc/msc_host.c b/src/class/msc/msc_host.c
index bb4d117e6..0c52011df 100644
--- a/src/class/msc/msc_host.c
+++ b/src/class/msc/msc_host.c
@@ -295,8 +295,6 @@ void msch_init(void)
bool msch_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_interface_desc, uint16_t *p_length)
{
- tusb_error_t error;
-
if (! ( MSC_SUBCLASS_SCSI == p_interface_desc->bInterfaceSubClass &&
MSC_PROTOCOL_BOT == p_interface_desc->bInterfaceProtocol ) )
{
@@ -393,6 +391,8 @@ bool msch_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_interfac
msch_data[dev_addr-1].is_initialized = true;
tuh_msc_mounted_cb(dev_addr);
+
+ return true;
}
void msch_isr(pipe_handle_t pipe_hdl, xfer_result_t event, uint32_t xferred_bytes)