Skip to content

Commit 370328b

Browse files
authored
Fix check for ESP32-S3 revision (#228)
***NO_CI***
1 parent 9f44af1 commit 370328b

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

nanoFirmwareFlasher.Library/Esp32Operations.cs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -240,31 +240,12 @@ public static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync(
240240
}
241241
else if (esp32Device.ChipType == "ESP32-S3")
242242
{
243-
string revisionSuffix;
244-
245-
if (esp32Device.ChipName.Contains("revision 3") || esp32Device.ChipName.Contains("revision 4"))
246-
{
247-
// all the others (rev3 and rev4) will take rev3
248-
revisionSuffix = "_REV3";
249-
}
250-
else
251-
{
252-
Console.ForegroundColor = ConsoleColor.Red;
253-
254-
Console.WriteLine("");
255-
Console.WriteLine($"Unsupported ESP32_S3 revision.");
256-
Console.WriteLine("");
257-
258-
Console.ForegroundColor = ConsoleColor.White;
259-
260-
return ExitCodes.E9000;
261-
}
243+
// ESP32_S3 has only one revision
262244

263245
// compose target name
264246
targetName = $"ESP32_S3";
265247
}
266248

267-
268249
Console.ForegroundColor = ConsoleColor.Blue;
269250

270251
Console.WriteLine("");

0 commit comments

Comments
 (0)