mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Correct detection of errors sending ATA commands in device-info.
This commit is contained in:
@@ -90,6 +90,12 @@ namespace DiscImageChef.Core.Devices.Info
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(dev.Error)
|
||||||
|
{
|
||||||
|
DicConsole.ErrorWriteLine("Error {0} querying ATA IDENTIFY", dev.LastError);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
AtaIdentify = ataBuf;
|
AtaIdentify = ataBuf;
|
||||||
|
|
||||||
dev.EnableMediaCardPassThrough(out errorRegisters, dev.Timeout, out _);
|
dev.EnableMediaCardPassThrough(out errorRegisters, dev.Timeout, out _);
|
||||||
@@ -120,7 +126,8 @@ namespace DiscImageChef.Core.Devices.Info
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
AtapiIdentify = ataBuf;
|
if(!dev.Error) AtapiIdentify = ataBuf;
|
||||||
|
else DicConsole.ErrorWriteLine("Error {0} querying ATA PACKET IDENTIFY", dev.LastError);
|
||||||
|
|
||||||
// ATAPI devices are also SCSI devices
|
// ATAPI devices are also SCSI devices
|
||||||
goto case DeviceType.SCSI;
|
goto case DeviceType.SCSI;
|
||||||
|
|||||||
Reference in New Issue
Block a user