When PhysicalInterface MMC feature is unknown, store integer value separately in the report.

This commit is contained in:
2017-09-10 22:03:20 +01:00
parent 9e0be48cc2
commit d60060d266
2 changed files with 9 additions and 0 deletions

View File

@@ -183,6 +183,12 @@ namespace DiscImageChef.Core.Devices.Report.SCSI
{
report.SCSI.MultiMediaDevice.Features.PhysicalInterfaceStandard = ftr0001.Value.PhysicalInterfaceStandard;
report.SCSI.MultiMediaDevice.Features.PhysicalInterfaceStandardSpecified = true;
if((uint)ftr0001.Value.PhysicalInterfaceStandard > 0x8)
{
report.SCSI.MultiMediaDevice.Features.PhysicalInterfaceStandardNumber = (uint)ftr0001.Value.PhysicalInterfaceStandard;
report.SCSI.MultiMediaDevice.Features.PhysicalInterfaceStandardNumberSpecified = true;
report.SCSI.MultiMediaDevice.Features.PhysicalInterfaceStandard = Decoders.SCSI.MMC.PhysicalInterfaces.Unspecified;
}
report.SCSI.MultiMediaDevice.Features.SupportsDeviceBusyEvent = ftr0001.Value.DBE;
}
}