diff --git a/DiscImageChef.Core/Devices/Report/ATA.cs b/DiscImageChef.Core/Devices/Report/ATA.cs index 6761a9809..cc88958ee 100644 --- a/DiscImageChef.Core/Devices/Report/ATA.cs +++ b/DiscImageChef.Core/Devices/Report/ATA.cs @@ -53,7 +53,7 @@ namespace DiscImageChef.Core.Devices.Report DicConsole.WriteLine("Querying ATA IDENTIFY..."); dev.AtaIdentify(out byte[] buffer, out _, dev.Timeout, out _); - mediaTest.IdentifyData = buffer; + mediaTest.IdentifyData = ClearIdentify(buffer); mediaTest.IdentifyDevice = Identify.Decode(buffer); if(mediaTest.IdentifyDevice.HasValue) @@ -584,7 +584,7 @@ namespace DiscImageChef.Core.Devices.Report return capabilities; } - static byte[] ClearIdentify(byte[] buffer) + public static byte[] ClearIdentify(byte[] buffer) { byte[] empty = new byte[512]; diff --git a/DiscImageChef/Commands/DeviceReport.cs b/DiscImageChef/Commands/DeviceReport.cs index aee8aeb6c..153ccd59c 100644 --- a/DiscImageChef/Commands/DeviceReport.cs +++ b/DiscImageChef/Commands/DeviceReport.cs @@ -216,7 +216,7 @@ namespace DiscImageChef.Commands if(!Identify.Decode(buffer).HasValue) break; - report.ATA = new Ata {Identify = buffer}; + report.ATA = new Ata {Identify = DeviceReport.ClearIdentify(buffer)}; if(report.ATA.IdentifyDevice == null) break; @@ -247,7 +247,7 @@ namespace DiscImageChef.Commands System.Console.ReadKey(true); DicConsole.WriteLine("Querying ATA IDENTIFY..."); dev.AtaIdentify(out buffer, out _, dev.Timeout, out _); - report.ATA.Identify = buffer; + report.ATA.Identify = DeviceReport.ClearIdentify(buffer); List mediaTests = new List(); pressedKey = new ConsoleKeyInfo(); @@ -296,7 +296,8 @@ namespace DiscImageChef.Commands dev.AtapiIdentify(out buffer, out _, dev.Timeout, out _); - if(Identify.Decode(buffer).HasValue) report.ATAPI = new Ata {Identify = buffer}; + if(Identify.Decode(buffer).HasValue) + report.ATAPI = new Ata {Identify = DeviceReport.ClearIdentify(buffer)}; goto case DeviceType.SCSI; case DeviceType.SCSI: