diff options
| author | hathach <[email protected]> | 2014-03-13 18:25:20 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-13 18:25:20 +0700 |
| commit | 6fbca0ea8731b7f50a895ae5c62fc2bbedde2550 (patch) | |
| tree | c98776c0f9b448a01b43f7d89b6624794d038ed4 /tinyusb/class/msc_device.c | |
| parent | f1692c93ac7f9990490223cf924d84e1cbdcbeb6 (diff) | |
remove legacy code of msc_device.c read10 & write10
clean up some warnings
Diffstat (limited to 'tinyusb/class/msc_device.c')
| -rw-r--r-- | tinyusb/class/msc_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/class/msc_device.c b/tinyusb/class/msc_device.c index 77ce2edc8..265051606 100644 --- a/tinyusb/class/msc_device.c +++ b/tinyusb/class/msc_device.c @@ -199,10 +199,10 @@ tusb_error_t mscd_xfer_cb(endpoint_handle_t edpt_hdl, tusb_event_t event, uint32 //------------- Data Phase For READ10 & WRITE10 (can be executed several times) -------------//
if ( (SCSI_CMD_READ_10 == p_cbw->command[0]) || (SCSI_CMD_WRITE_10 == p_cbw->command[0]) )
{
- if (is_waiting_read10_write10)
- { // continue with read10, write10 data transfer, interrupt must come from endpoint IN
- ASSERT( endpointhandle_is_equal(p_msc->edpt_in, edpt_hdl) && event == TUSB_EVENT_XFER_COMPLETE, TUSB_ERROR_INVALID_PARA);
- }
+// if (is_waiting_read10_write10)
+// { // continue with read10, write10 data transfer, interrupt must come from endpoint IN
+// ASSERT( endpointhandle_is_equal(p_msc->edpt_in, edpt_hdl) && event == TUSB_EVENT_XFER_COMPLETE, TUSB_ERROR_INVALID_PARA);
+// }
is_waiting_read10_write10 = !read10_write10_data_xfer(p_msc);
}
|
