From b21c6f2c639f1a3e2311ca30f8b8b0622f979f38 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 10 Sep 2017 18:15:44 +0100 Subject: [PATCH] Manually mark manufacturer as "ATA" on Windows so it becomes treated like that. --- DiscImageChef.Devices/Device/Constructor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DiscImageChef.Devices/Device/Constructor.cs b/DiscImageChef.Devices/Device/Constructor.cs index 0f7879eb..4268b0fd 100644 --- a/DiscImageChef.Devices/Device/Constructor.cs +++ b/DiscImageChef.Devices/Device/Constructor.cs @@ -196,8 +196,6 @@ namespace DiscImageChef.Devices break; } - System.Console.WriteLine("{0}", type); - if(type == DeviceType.SCSI || type == DeviceType.ATAPI) scsiSense = ScsiInquiry(out inqBuf, out senseBuf); else if(type == DeviceType.ATA) @@ -212,6 +210,8 @@ namespace DiscImageChef.Devices if (ATAID.HasValue) scsiSense = ScsiInquiry(out inqBuf, out senseBuf); } + else + manufacturer = "ATA"; } } @@ -449,7 +449,7 @@ namespace DiscImageChef.Devices } } - if((scsiSense && (usb || firewire)) || manufacturer == "ATA") + if ((scsiSense && (usb || firewire)) || manufacturer == "ATA") { bool ataSense = AtaIdentify(out ataBuf, out errorRegisters); if(!ataSense)