mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2025-01-14 21:29:45 +00:00
Fix Unit Serial Number inquiry page to return configured value.
This commit is contained in:
parent
50538385af
commit
0b49f5de9c
@ -181,6 +181,7 @@ void scsiInquiry()
|
|||||||
{
|
{
|
||||||
memcpy(scsiDev.data, UnitSerialNumber, sizeof(UnitSerialNumber));
|
memcpy(scsiDev.data, UnitSerialNumber, sizeof(UnitSerialNumber));
|
||||||
scsiDev.dataLen = sizeof(UnitSerialNumber);
|
scsiDev.dataLen = sizeof(UnitSerialNumber);
|
||||||
|
memcpy(&scsiDev.data[4], config->serial, sizeof(config->serial));
|
||||||
scsiDev.phase = DATA_IN;
|
scsiDev.phase = DATA_IN;
|
||||||
}
|
}
|
||||||
else if (pageCode == 0x81)
|
else if (pageCode == 0x81)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user