Skip to content

Commit

Permalink
SCSI inquiry length #541
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 23, 2025
1 parent de176bd commit 633ccfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/hw_layer/mass_storage/mass_storage_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static const scsi_inquiry_response_t iniDriveInquiry = {
0x80, /* removable */
0x04, /* SPC-2 */
0x02, /* response data format */
0x20, /* response has 0x20 + 4 bytes */
sizeof(scsi_inquiry_response_t) - 5, // size of this struct, minus bytes up to and including this one
0x00,
0x00,
0x00,
Expand All @@ -63,7 +63,7 @@ static const scsi_inquiry_response_t sdCardInquiry = {
0x80, /* removable */
0x04, /* SPC-2 */
0x02, /* response data format */
0x20, /* response has 0x20 + 4 bytes */
sizeof(scsi_inquiry_response_t) - 5, // size of this struct, minus bytes up to and including this one
0x00,
0x00,
0x00,
Expand Down

0 comments on commit 633ccfa

Please sign in to comment.