diff options
| author | KK <[email protected]> | 2025-05-27 22:06:41 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-06-17 16:18:03 +0800 |
| commit | 5e890a078fef0f60d12225e42c4afd3a3b456e4b (patch) | |
| tree | ef616d53a2f855b6ab3320fe9a3ce2f60468f111 | |
| parent | e530d86af78934ed5ee6c338adc4d331d5a0216a (diff) | |
msc: add support for SCSI_CMD_SYNCHCACHE10 (0x35) to fix unsupported command error
| -rw-r--r-- | class/msc/usbd_msc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/class/msc/usbd_msc.c b/class/msc/usbd_msc.c index 2f067f8f..4a7b7524 100644 --- a/class/msc/usbd_msc.c +++ b/class/msc/usbd_msc.c @@ -807,7 +807,9 @@ static bool SCSI_CBWDecode(uint8_t busid, uint32_t nbytes) //ret = SCSI_verify10(NULL, 0); ret = false; break; - + case SCSI_CMD_SYNCHCACHE10: + ret = true; + break; default: SCSI_SetSenseData(busid, SCSI_KCQIR_INVALIDCOMMAND); USB_LOG_WRN("unsupported cmd:0x%02x\r\n", g_usbd_msc[busid].cbw.CB[0]); |
