Skip to content

Commit

Permalink
SCSI2SD: Set Inquiry standard version based on EnableSCSI2 setting (#123
Browse files Browse the repository at this point in the history
)

Previously always reported SCSI-2 compliance.
  • Loading branch information
PetteriAimonen authored and erichelgeson committed May 6, 2023
1 parent 23b389c commit 6b13c94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/SCSI2SD/src/firmware/inquiry.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ uint32_t s2s_getStandardInquiry(
memcpy(out, StandardResponse, buflen);
out[1] = cfg->deviceTypeModifier;

if (!(scsiDev.boardCfg.flags & S2S_CFG_ENABLE_SCSI2))
{
out[2] = 1; // Report only SCSI 1 compliance version
}

if (scsiDev.compatMode >= COMPAT_SCSI2)
{
out[3] = 2; // SCSI 2 response format.
Expand Down

0 comments on commit 6b13c94

Please sign in to comment.