mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code restyling.
This commit is contained in:
4
CHS.cs
4
CHS.cs
@@ -42,7 +42,7 @@ namespace Aaru.Helpers
|
||||
/// <param name="maxSector">Number of sectors per track</param>
|
||||
/// <returns></returns>
|
||||
public static uint ToLBA(uint cyl, uint head, uint sector, uint maxHead, uint maxSector) =>
|
||||
maxHead == 0 || maxSector == 0 ? (cyl * 16 + head) * 63 + sector - 1
|
||||
: (cyl * maxHead + head) * maxSector + sector - 1;
|
||||
maxHead == 0 || maxSector == 0 ? ((((cyl * 16) + head) * 63) + sector) - 1
|
||||
: ((((cyl * maxHead) + head) * maxSector) + sector) - 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user