Skip to content

Commit

Permalink
Improve flashing with J-Link (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Dec 16, 2022
1 parent 861aff8 commit 721418f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nanoFirmwareFlasher.Library/JLinkCli.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,20 @@ public ExitCodes ExecuteFlashBinFiles(

return ExitCodes.E5006;
}

if (Verbosity >= VerbosityLevel.Normal
&& cliOutput.Contains("Skipped. Contents already match"))
{
Console.ForegroundColor = ConsoleColor.Yellow;

Console.WriteLine("");
Console.WriteLine("********************* WARNING **********************");
Console.WriteLine("Skipped flashing. Contents already match the update.");
Console.WriteLine("****************************************************");
Console.WriteLine("");

Console.ForegroundColor = ConsoleColor.White;
}
}

if (Verbosity < VerbosityLevel.Normal)
Expand Down

0 comments on commit 721418f

Please sign in to comment.