mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
Merge branch 'master' of https://github.com/szymonh/tinyusb into szymonh-master
This commit is contained in:
commit
14514d7087
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2019 Ha Thach (tinyusb.org)
|
* Copyright (c) 2019 Ha Thach (tinyusb.org)
|
||||||
@ -187,6 +187,11 @@ uint8_t rdwr10_validate_cmd(msc_cbw_t const* cbw)
|
|||||||
TU_LOG(MSC_DEBUG, " SCSI case 4 Hi > Dn\r\n");
|
TU_LOG(MSC_DEBUG, " SCSI case 4 Hi > Dn\r\n");
|
||||||
status = MSC_CSW_STATUS_FAILED;
|
status = MSC_CSW_STATUS_FAILED;
|
||||||
}
|
}
|
||||||
|
else if ( SCSI_CMD_READ_10 == cbw->command[0] && cbw->total_bytes / block_count == 0)
|
||||||
|
{
|
||||||
|
TU_LOG(MSC_DEBUG, " Computed block size 0\r\n");
|
||||||
|
status = MSC_CSW_STATUS_FAILED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user