Skip to content

Commit 413287b

Browse files
authored
Output from J-Link CLI is now output on diagnostic (#195)
1 parent 13cf5c3 commit 413287b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nanoFirmwareFlasher.Library/JLinkCli.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public ExitCodes ExecuteMassErase(string probeId)
100100
Console.WriteLine("");
101101
}
102102

103+
ShowCLIOutput(cliOutput);
104+
103105
Console.ForegroundColor = ConsoleColor.White;
104106

105107
return ExitCodes.OK;
@@ -266,6 +268,8 @@ public ExitCodes ExecuteFlashBinFiles(
266268

267269
Console.ForegroundColor = ConsoleColor.White;
268270
}
271+
272+
ShowCLIOutput(cliOutput);
269273
}
270274

271275
if (Verbosity < VerbosityLevel.Normal)
@@ -291,10 +295,13 @@ public void ShowCLIOutput(string cliOutput)
291295
{
292296
Console.ForegroundColor = ConsoleColor.Yellow;
293297

298+
Console.WriteLine();
294299
Console.WriteLine();
295300
Console.WriteLine(">>>>>>>>");
296-
Console.WriteLine($"{cliOutput}");
301+
Console.WriteLine(cliOutput);
297302
Console.WriteLine(">>>>>>>>");
303+
Console.WriteLine();
304+
Console.WriteLine();
298305

299306
Console.ForegroundColor = ConsoleColor.White;
300307
}

0 commit comments

Comments
 (0)