Skip to content

Commit 32221e8

Browse files
Aladdin-Wangsakumisu
authored andcommitted
msc: add support for SCSI_CMD_SYNCHCACHE10 (0x35) to fix unsupported command error
1 parent f23f549 commit 32221e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

class/msc/usbd_msc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,9 @@ static bool SCSI_CBWDecode(uint8_t busid, uint32_t nbytes)
807807
//ret = SCSI_verify10(NULL, 0);
808808
ret = false;
809809
break;
810-
810+
case SCSI_CMD_SYNCHCACHE10:
811+
ret = true;
812+
break;
811813
default:
812814
SCSI_SetSenseData(busid, SCSI_KCQIR_INVALIDCOMMAND);
813815
USB_LOG_WRN("unsupported cmd:0x%02x\r\n", g_usbd_msc[busid].cbw.CB[0]);

0 commit comments

Comments
 (0)