more tusb update

This commit is contained in:
hathach 2018-07-26 16:58:50 +07:00
parent 71f6899143
commit c273b82883
2 changed files with 1 additions and 17 deletions

@ -1 +1 @@
Subproject commit 86c445cd71133e2c6c659707845fe6b088b0cf6f Subproject commit e362f5fd64d257e3ad70962be59fc8593a0f5d95

View File

@ -50,17 +50,6 @@
void read_block(uint32_t block_no, uint8_t *data); void read_block(uint32_t block_no, uint8_t *data);
int write_block(uint32_t block_no, uint8_t *data, bool quiet/*, WriteState *state*/); int write_block(uint32_t block_no, uint8_t *data, bool quiet/*, WriteState *state*/);
/*------------------------------------------------------------------*/
/* VARIABLES
*------------------------------------------------------------------*/
static scsi_mode_parameters_t const msc_dev_mode_para =
{
.mode_data_length = 3,
.medium_type = 0,
.device_specific_para = 0,
.block_descriptor_length = 0
};
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
/* API /* API
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
@ -94,11 +83,6 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer,
switch (scsi_cmd[0]) switch (scsi_cmd[0])
{ {
case SCSI_CMD_MODE_SENSE_6:
ptr = &msc_dev_mode_para;
len = sizeof(msc_dev_mode_para);
break;
case SCSI_CMD_TEST_UNIT_READY: case SCSI_CMD_TEST_UNIT_READY:
// Command that host uses to check our readiness before sending other commands // Command that host uses to check our readiness before sending other commands
len = 0; len = 0;