Skip to content

Commit 721418f

Browse files
authored
Improve flashing with J-Link (#192)
1 parent 861aff8 commit 721418f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

nanoFirmwareFlasher.Library/JLinkCli.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@ public ExitCodes ExecuteFlashBinFiles(
252252

253253
return ExitCodes.E5006;
254254
}
255+
256+
if (Verbosity >= VerbosityLevel.Normal
257+
&& cliOutput.Contains("Skipped. Contents already match"))
258+
{
259+
Console.ForegroundColor = ConsoleColor.Yellow;
260+
261+
Console.WriteLine("");
262+
Console.WriteLine("********************* WARNING **********************");
263+
Console.WriteLine("Skipped flashing. Contents already match the update.");
264+
Console.WriteLine("****************************************************");
265+
Console.WriteLine("");
266+
267+
Console.ForegroundColor = ConsoleColor.White;
268+
}
255269
}
256270

257271
if (Verbosity < VerbosityLevel.Normal)

0 commit comments

Comments
 (0)