diff options
| author | hathach <[email protected]> | 2018-07-26 15:59:35 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-26 15:59:35 +0700 |
| commit | a9c04e9ff18b63eda26a0c5a6bc9d4cc4e529276 (patch) | |
| tree | 91d0ac520f568cd25b12e2fbc674154c36023a9e /examples/device | |
| parent | f5b2912372b6fbd69a18774f46155ae6723cb4e3 (diff) | |
update main app for start stop unit
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/nrf52840/src/msc_device_app.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/device/nrf52840/src/msc_device_app.c b/examples/device/nrf52840/src/msc_device_app.c index e20ad45f8..5edd4e0f5 100644 --- a/examples/device/nrf52840/src/msc_device_app.c +++ b/examples/device/nrf52840/src/msc_device_app.c @@ -94,11 +94,11 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer, len = 0; break; -// case SCSI_CMD_START_STOP_UNIT: -// // Host try to eject/safe remove/powerof us. We could safely disconnect with disk storage, or go into lower power -// // scsi_start_stop_unit_t const * cmd_start_stop = (scsi_start_stop_unit_t const *) scsi_cmd -// len = 0; -// break; + case SCSI_CMD_START_STOP_UNIT: + // Host try to eject/safe remove/powerof us. We could safely disconnect with disk storage, or go into lower power + // scsi_start_stop_unit_t const * cmd_start_stop = (scsi_start_stop_unit_t const *) scsi_cmd + len = 0; + break; default: // negative is error -> Data stage is STALL, status = failed |
