Skip to content

Commit fd62d99

Browse files
committed
Code style fixes
***NO_CI***
1 parent 744c341 commit fd62d99

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

nanoFirmwareFlasher.Library/CC13x26x2Firmware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public CC13x26x2Firmware(
2727
internal new System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
2828
{
2929
// perform download and extract
30-
return base.DownloadAndExtractAsync();
30+
return base.DownloadAndExtractAsync();
3131
}
3232
}
3333
}

nanoFirmwareFlasher.Library/Esp32DeviceInfo.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ internal string GetFlashSizeAsString()
103103

104104
public static string GetFlashSizeAsString(int flashSize)
105105
{
106-
return flashSize >= 0x10000 ? $"{ flashSize / 0x100000 }MB" : $"{ flashSize / 0x400 }kB";
106+
return flashSize >= 0x10000 ? $"{flashSize / 0x100000}MB" : $"{flashSize / 0x400}kB";
107107
}
108108

109109
/// <inheritdoc/>
@@ -123,8 +123,8 @@ public override string ToString()
123123
deviceInfo.AppendLine();
124124
}
125125

126-
deviceInfo.AppendLine($"Features { Features }");
127-
deviceInfo.AppendLine($"Flash size { GetFlashSizeAsString() } { GetFlashDeviceId() } from { GetFlashManufacturer() } (manufacturer 0x{ FlashManufacturerId } device 0x{ FlashDeviceId })");
126+
deviceInfo.AppendLine($"Features {Features}");
127+
deviceInfo.AppendLine($"Flash size {GetFlashSizeAsString()} {GetFlashDeviceId()} from {GetFlashManufacturer()} (manufacturer 0x{FlashManufacturerId} device 0x{FlashDeviceId})");
128128

129129
switch (PSRamAvailable)
130130
{
@@ -141,8 +141,8 @@ public override string ToString()
141141
break;
142142
}
143143

144-
deviceInfo.AppendLine($"Crystal { Crystal }");
145-
deviceInfo.AppendLine($"MAC { MacAddress }");
144+
deviceInfo.AppendLine($"Crystal {Crystal}");
145+
deviceInfo.AppendLine($"MAC {MacAddress}");
146146

147147
return deviceInfo.ToString();
148148
}

nanoFirmwareFlasher.Library/EspTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ private bool RunEspTool(
629629
if (!espTool.Start())
630630
{
631631
throw new EspToolExecutionException("Error starting esptool!");
632-
}
632+
}
633633

634634
var messageBuilder = new StringBuilder();
635635

nanoFirmwareFlasher.Library/Stm32Firmware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public Stm32Firmware(NanoDeviceBase nanoDevice) : base(nanoDevice)
5050
internal new System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
5151
{
5252
// perform download and extract
53-
return base.DownloadAndExtractAsync();
53+
return base.DownloadAndExtractAsync();
5454
}
5555
}
5656
}

nanoFirmwareFlasher.Library/StmDfuDevice.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ public override string ToString()
240240

241241
if (!string.IsNullOrEmpty(DeviceName))
242242
{
243-
deviceInfo.AppendLine($"Device: { DeviceName }");
243+
deviceInfo.AppendLine($"Device: {DeviceName}");
244244
}
245245

246-
deviceInfo.AppendLine($"CPU: { DeviceCPU }");
246+
deviceInfo.AppendLine($"CPU: {DeviceCPU}");
247247

248248
return deviceInfo.ToString();
249249
}

nanoFirmwareFlasher.Library/StmJtagDevice.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,16 @@ public override string ToString()
218218

219219
if (!string.IsNullOrEmpty(DeviceName))
220220
{
221-
deviceInfo.AppendLine($"Device: { DeviceName }");
221+
deviceInfo.AppendLine($"Device: {DeviceName}");
222222
}
223223

224224
if (!string.IsNullOrEmpty(BoardName))
225225
{
226-
deviceInfo.AppendLine($"Board: { BoardName }");
226+
deviceInfo.AppendLine($"Board: {BoardName}");
227227
}
228228

229-
deviceInfo.AppendLine($"CPU: { DeviceCPU }");
230-
deviceInfo.AppendLine($"Device ID: { DeviceId }");
229+
deviceInfo.AppendLine($"CPU: {DeviceCPU}");
230+
deviceInfo.AppendLine($"Device ID: {DeviceId}");
231231

232232
return deviceInfo.ToString();
233233
}

nanoFirmwareFlasher.Tool/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
451451
{
452452
// easiest one: ESP32
453453
if (o.TargetName.StartsWith("ESP")
454-
|| o.TargetName.StartsWith("M5")
454+
|| o.TargetName.StartsWith("M5")
455455
|| o.TargetName.StartsWith("FEATHER")
456456
|| o.TargetName.StartsWith("ESPKALUGA"))
457457
{
@@ -511,7 +511,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
511511
!string.IsNullOrEmpty(o.DfuDeviceId))
512512
{
513513
o.Platform = SupportedPlatform.stm32;
514-
}
514+
}
515515
// GG11 related
516516
else if (o.ListJLinkDevices)
517517
{

0 commit comments

Comments
 (0)