Skip to content

Commit

Permalink
Fix wrong or missing prompts in deploy application (#214)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored May 31, 2023
1 parent 7beaebd commit 8d9dfd5
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion nanoFirmwareFlasher.Library/NanoDeviceOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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;
Expand Down

0 comments on commit 8d9dfd5

Please sign in to comment.