update tinyusb, set scsi sense key for unsupported commands
This commit is contained in:
parent
368d59796f
commit
ae783b0b1a
|
@ -1 +1 @@
|
|||
Subproject commit cf6c534c1974f4efeb5c136697d1f1028e6aa34a
|
||||
Subproject commit 191b73b58c5ad6a098c652f31459ef39078a484b
|
|
@ -82,8 +82,13 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer,
|
|||
resplen = 0;
|
||||
break;
|
||||
|
||||
// negative means error -> tusb could stall and/or response with failed status
|
||||
default: return -1;
|
||||
default:
|
||||
// Set Sense = Invalid Command Operation
|
||||
tud_msc_set_sense(lun, SCSI_SENSE_ILLEGAL_REQUEST, 0x20, 0x00);
|
||||
|
||||
// negative means error -> tinyusb could stall and/or response with failed status
|
||||
resplen = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
// return len must not larger than bufsize
|
||||
|
|
Loading…
Reference in New Issue