summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-25 23:56:06 +0700
committerhathach <[email protected]>2018-07-25 23:56:06 +0700
commit8694285ad2fc7bd5caf8c35691056252ef534c7b (patch)
tree7f8d0576632abd6c235b7f97cd92c7e7becac249 /examples
parent226a4f8816ce265e4d90d9586699d70879fd3517 (diff)
add SCSI_CMD_REQUEST_SENSE into device msc built-in command
Diffstat (limited to 'examples')
-rw-r--r--examples/device/nrf52840/src/msc_device_app.c22
-rw-r--r--examples/device/nrf52840/src/msc_device_app.h2
2 files changed, 0 insertions, 24 deletions
diff --git a/examples/device/nrf52840/src/msc_device_app.c b/examples/device/nrf52840/src/msc_device_app.c
index 75d33d722..e20ad45f8 100644
--- a/examples/device/nrf52840/src/msc_device_app.c
+++ b/examples/device/nrf52840/src/msc_device_app.c
@@ -46,15 +46,6 @@
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
-scsi_sense_fixed_data_t mscd_sense_data =
-{
- .response_code = 0x70,
- .valid = 1,
-
- .sense_key = 0, // no errors
- .add_sense_len = sizeof(scsi_sense_fixed_data_t) - 8
-};
-
static scsi_mode_parameters_t const msc_dev_mode_para =
{
.mode_data_length = 3,
@@ -88,11 +79,6 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer,
switch (scsi_cmd[0])
{
- case SCSI_CMD_REQUEST_SENSE:
- ptr = &mscd_sense_data;
- len = sizeof(scsi_sense_fixed_data_t);
- break;
-
case SCSI_CMD_MODE_SENSE_6:
ptr = &msc_dev_mode_para;
len = sizeof(msc_dev_mode_para);
@@ -133,14 +119,6 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer,
}
}
- //------------- clear sense data if it is not request sense command -------------//
- if ( SCSI_CMD_REQUEST_SENSE != scsi_cmd[0] )
- {
- mscd_sense_data.sense_key = SCSI_SENSEKEY_NONE;
- mscd_sense_data.add_sense_code = 0;
- mscd_sense_data.add_sense_qualifier = 0;
- }
-
return len;
}
diff --git a/examples/device/nrf52840/src/msc_device_app.h b/examples/device/nrf52840/src/msc_device_app.h
index 0ed04d285..cc3caa102 100644
--- a/examples/device/nrf52840/src/msc_device_app.h
+++ b/examples/device/nrf52840/src/msc_device_app.h
@@ -75,8 +75,6 @@ void msc_app_task(void* param);
void msc_app_mount(uint8_t rhport);
void msc_app_umount(uint8_t rhport);
-extern scsi_sense_fixed_data_t mscd_sense_data;
-
#else
#define msc_app_init()