msc example response PREVENT_ALLOW_MEDIUM_REMOVAL command as unsupported command

LUN1 of msc_disk_dual will be set to not ready to simulate medium not
present (e.g SD card removed)
This commit is contained in:
hathach
2022-02-15 22:40:08 +07:00
parent 456c06aa5e
commit 391edc7afb
5 changed files with 5 additions and 34 deletions

View File

@@ -243,11 +243,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_PREVENT_ALLOW_MEDIUM_REMOVAL:
// Host is about to read/write etc ... better not to disconnect disk
resplen = 0;
break;
default:
// Set Sense = Invalid Command Operation
tud_msc_set_sense(lun, SCSI_SENSE_ILLEGAL_REQUEST, 0x20, 0x00);