mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use object initializer.
This commit is contained in:
@@ -133,11 +133,10 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.ReadLogExt,
|
||||
SectorCount = count,
|
||||
LbaMidCurrent = (byte)(pageNumber & 0xFF),
|
||||
LbaMidPrevious = (byte)((pageNumber & 0xFF00) / 0x100)
|
||||
LbaMidPrevious = (byte)((pageNumber & 0xFF00) / 0x100),
|
||||
LbaLowCurrent = logAddress
|
||||
};
|
||||
|
||||
registers.LbaLowCurrent = logAddress;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.PioIn, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
|
||||
@@ -167,11 +166,10 @@ public partial class Device
|
||||
Command = (byte)AtaCommands.ReadLogDmaExt,
|
||||
SectorCount = count,
|
||||
LbaMidCurrent = (byte)(pageNumber & 0xFF),
|
||||
LbaMidPrevious = (byte)((pageNumber & 0xFF00) / 0x100)
|
||||
LbaMidPrevious = (byte)((pageNumber & 0xFF00) / 0x100),
|
||||
LbaLowCurrent = logAddress
|
||||
};
|
||||
|
||||
registers.LbaLowCurrent = logAddress;
|
||||
|
||||
LastError = SendAtaCommand(registers, out statusRegisters, AtaProtocol.Dma, AtaTransferRegister.SectorCount,
|
||||
ref buffer, timeout, true, out duration, out bool sense);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user