diff --git a/Aaru/Commands/Configure.cs b/Aaru/Commands/Configure.cs index 4771e04eb..080a21e41 100644 --- a/Aaru/Commands/Configure.cs +++ b/Aaru/Commands/Configure.cs @@ -57,9 +57,9 @@ namespace Aaru.Commands return DoConfigure(false); } - internal int DoConfigure(bool _gdprChange) + internal int DoConfigure(bool gdprChange) { - if(_gdprChange) + if(gdprChange) { AaruConsole. WriteLine("In compliance with the European Union General Data Protection Regulation 2016/679 (GDPR),\n" + diff --git a/Aaru/Commands/Device/Info.cs b/Aaru/Commands/Device/Info.cs index 7aca36c60..cf86fd9d2 100644 --- a/Aaru/Commands/Device/Info.cs +++ b/Aaru/Commands/Device/Info.cs @@ -284,30 +284,30 @@ namespace Aaru.Commands.Device if(decodedIdentify.HasValue) { - Identify.IdentifyDevice ATAID = decodedIdentify.Value; + Identify.IdentifyDevice ataid = decodedIdentify.Value; ulong blocks; - if(ATAID.CurrentCylinders > 0 && - ATAID.CurrentHeads > 0 && - ATAID.CurrentSectorsPerTrack > 0) + if(ataid.CurrentCylinders > 0 && + ataid.CurrentHeads > 0 && + ataid.CurrentSectorsPerTrack > 0) { blocks = - (ulong)Math.Max(ATAID.CurrentCylinders * ATAID.CurrentHeads * ATAID.CurrentSectorsPerTrack, - ATAID.CurrentSectors); + (ulong)Math.Max(ataid.CurrentCylinders * ataid.CurrentHeads * ataid.CurrentSectorsPerTrack, + ataid.CurrentSectors); } else { - blocks = (ulong)(ATAID.Cylinders * ATAID.Heads * ATAID.SectorsPerTrack); + blocks = (ulong)(ataid.Cylinders * ataid.Heads * ataid.SectorsPerTrack); } - if(ATAID.Capabilities.HasFlag(Identify.CapabilitiesBit.LBASupport)) - blocks = ATAID.LBASectors; + if(ataid.Capabilities.HasFlag(Identify.CapabilitiesBit.LBASupport)) + blocks = ataid.LBASectors; - if(ATAID.CommandSet2.HasFlag(Identify.CommandSetBit2.LBA48)) - blocks = ATAID.LBA48Sectors; + if(ataid.CommandSet2.HasFlag(Identify.CommandSetBit2.LBA48)) + blocks = ataid.LBA48Sectors; - bool removable = ATAID.GeneralConfiguration.HasFlag(Identify.GeneralConfigurationBit.Removable); + bool removable = ataid.GeneralConfiguration.HasFlag(Identify.GeneralConfigurationBit.Removable); MediaType mediaType = MediaTypeFromDevice.GetFromAta(dev.Manufacturer, dev.Model, removable, dev.IsCompactFlash, dev.IsPcmcia, blocks);