diff --git a/Aaru.Devices/Device/AtaCommands/AtaCHS.cs b/Aaru.Devices/Device/AtaCommands/AtaCHS.cs index f2ce34b3e..139d4f081 100644 --- a/Aaru.Devices/Device/AtaCommands/AtaCHS.cs +++ b/Aaru.Devices/Device/AtaCommands/AtaCHS.cs @@ -74,11 +74,12 @@ public partial class Device var registers = new AtaRegistersChs { - Command = (byte)AtaCommands.IdentifyDevice + Command = (byte)AtaCommands.IdentifyDevice, + SectorCount = 1 }; - LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.NoTransfer, - ref buffer, timeout, false, out duration, out bool sense); + LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount, + ref buffer, timeout, true, out duration, out bool sense); Error = LastError != 0; diff --git a/Aaru.Devices/Device/AtaCommands/Atapi.cs b/Aaru.Devices/Device/AtaCommands/Atapi.cs index 3bad3125c..e70801ab5 100644 --- a/Aaru.Devices/Device/AtaCommands/Atapi.cs +++ b/Aaru.Devices/Device/AtaCommands/Atapi.cs @@ -73,11 +73,12 @@ public partial class Device var registers = new AtaRegistersChs { - Command = (byte)AtaCommands.IdentifyPacketDevice + Command = (byte)AtaCommands.IdentifyPacketDevice, + Sector = 1 }; - LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.NoTransfer, - ref buffer, timeout, false, out duration, out bool sense); + LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount, + ref buffer, timeout, true, out duration, out bool sense); Error = LastError != 0;