From 8d9dfd5f797f29ada05ccb2f8396b3aafd9466ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Wed, 31 May 2023 10:30:36 +0100 Subject: [PATCH] Fix wrong or missing prompts in deploy application (#214) ***NO_CI*** --- .../NanoDeviceOperations.cs | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/nanoFirmwareFlasher.Library/NanoDeviceOperations.cs b/nanoFirmwareFlasher.Library/NanoDeviceOperations.cs index 0b7582c2..54b27f96 100644 --- a/nanoFirmwareFlasher.Library/NanoDeviceOperations.cs +++ b/nanoFirmwareFlasher.Library/NanoDeviceOperations.cs @@ -661,13 +661,27 @@ public ExitCodes DeployApplication( return ExitCodes.E2002; } } + else + { + if (verbosity >= VerbosityLevel.Normal) + { + Console.ForegroundColor = ConsoleColor.Green; + Console.WriteLine("OK"); + + Console.ForegroundColor = ConsoleColor.White; + } + else + { + Console.WriteLine(""); + } + } // needed for slow devices Thread.Sleep(200); if (verbosity >= VerbosityLevel.Normal) { - Console.Write($"Erasing deployment block storage..."); + Console.Write($"Deploying managed application..."); } if (!nanoDevice.DeployBinaryFile( @@ -684,6 +698,20 @@ public ExitCodes DeployApplication( return ExitCodes.E2002; } } + else + { + if (verbosity >= VerbosityLevel.Normal) + { + Console.ForegroundColor = ConsoleColor.Green; + Console.WriteLine("OK"); + + Console.ForegroundColor = ConsoleColor.White; + } + else + { + Console.WriteLine(""); + } + } // all good here return ExitCodes.OK;