Skip to content

Commit

Permalink
Fix check for ESP32-S3 revision (#228)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Jun 19, 2023
1 parent 9f44af1 commit 370328b
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions nanoFirmwareFlasher.Library/Esp32Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,31 +240,12 @@ public static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync(
}
else if (esp32Device.ChipType == "ESP32-S3")
{
string revisionSuffix;

if (esp32Device.ChipName.Contains("revision 3") || esp32Device.ChipName.Contains("revision 4"))
{
// all the others (rev3 and rev4) will take rev3
revisionSuffix = "_REV3";
}
else
{
Console.ForegroundColor = ConsoleColor.Red;

Console.WriteLine("");
Console.WriteLine($"Unsupported ESP32_S3 revision.");
Console.WriteLine("");

Console.ForegroundColor = ConsoleColor.White;

return ExitCodes.E9000;
}
// ESP32_S3 has only one revision

// compose target name
targetName = $"ESP32_S3";
}


Console.ForegroundColor = ConsoleColor.Blue;

Console.WriteLine("");
Expand Down

0 comments on commit 370328b

Please sign in to comment.