Code cleanup.

This commit is contained in:
2020-07-20 04:34:15 +01:00
parent eac6cbca7a
commit 3e38c369b3
5 changed files with 58 additions and 37 deletions

View File

@@ -235,9 +235,8 @@ namespace Aaru.CommonTypes.Structs.Devices.SCSI.Modes
for(int i = 0; i < descriptors; i++)
decoded.WriteSpeedPerformanceDescriptors[i] = new ModePage_2A_WriteDescriptor
{
RotationControl =
(byte)(pageResponse[1 + 32 + (i * 4)] & 0x07),
WriteSpeed = (ushort)((pageResponse[2 + 32 + (i * 4)] << 8) + pageResponse[3 + 32 + (i * 4)])
RotationControl = (byte)(pageResponse[1 + 32 + (i * 4)] & 0x07),
WriteSpeed = (ushort)((pageResponse[2 + 32 + (i * 4)] << 8) + pageResponse[3 + 32 + (i * 4)])
};
return decoded;