Fix Unit Serial Number inquiry page to return configured value.
authorMichael McMaster <michael@codesrc.com>
Tue, 23 Jan 2018 10:20:55 +0000 (20:20 +1000)
committerMichael McMaster <michael@codesrc.com>
Tue, 23 Jan 2018 10:20:55 +0000 (20:20 +1000)
software/SCSI2SD/src/inquiry.c

index 9545475..9e7c706 100755 (executable)
@@ -181,6 +181,7 @@ void scsiInquiry()
        {
                memcpy(scsiDev.data, UnitSerialNumber, sizeof(UnitSerialNumber));
                scsiDev.dataLen = sizeof(UnitSerialNumber);
        {
                memcpy(scsiDev.data, UnitSerialNumber, sizeof(UnitSerialNumber));
                scsiDev.dataLen = sizeof(UnitSerialNumber);
+               memcpy(&scsiDev.data[4], config->serial, sizeof(config->serial));
                scsiDev.phase = DATA_IN;
        }
        else if (pageCode == 0x81)
                scsiDev.phase = DATA_IN;
        }
        else if (pageCode == 0x81)