Convert local variable or field into constant.

This commit is contained in:
2022-11-13 20:08:10 +00:00
parent fca57318f5
commit 0f94c5fc01
16 changed files with 75 additions and 85 deletions

View File

@@ -222,7 +222,6 @@ public partial class Device
ushort transferLength, bool byteAddressed, uint timeout, out double duration)
{
buffer = new byte[transferLength * blockSize];
double setDuration = 0;
uint address;
response = null;
@@ -239,10 +238,7 @@ public partial class Device
Error = LastError != 0;
if(transferLength > 1)
{
duration += setDuration;
AaruConsole.DebugWriteLine("MMC Device", "READ_MULTIPLE_BLOCK took {0} ms.", duration);
}
else
AaruConsole.DebugWriteLine("MMC Device", "READ_SINGLE_BLOCK took {0} ms.", duration);