Skip to content

Commit 8d9dfd5

Browse files
authored
Fix wrong or missing prompts in deploy application (#214)
***NO_CI***
1 parent 7beaebd commit 8d9dfd5

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

nanoFirmwareFlasher.Library/NanoDeviceOperations.cs

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,13 +661,27 @@ public ExitCodes DeployApplication(
661661
return ExitCodes.E2002;
662662
}
663663
}
664+
else
665+
{
666+
if (verbosity >= VerbosityLevel.Normal)
667+
{
668+
Console.ForegroundColor = ConsoleColor.Green;
669+
Console.WriteLine("OK");
670+
671+
Console.ForegroundColor = ConsoleColor.White;
672+
}
673+
else
674+
{
675+
Console.WriteLine("");
676+
}
677+
}
664678

665679
// needed for slow devices
666680
Thread.Sleep(200);
667681

668682
if (verbosity >= VerbosityLevel.Normal)
669683
{
670-
Console.Write($"Erasing deployment block storage...");
684+
Console.Write($"Deploying managed application...");
671685
}
672686

673687
if (!nanoDevice.DeployBinaryFile(
@@ -684,6 +698,20 @@ public ExitCodes DeployApplication(
684698
return ExitCodes.E2002;
685699
}
686700
}
701+
else
702+
{
703+
if (verbosity >= VerbosityLevel.Normal)
704+
{
705+
Console.ForegroundColor = ConsoleColor.Green;
706+
Console.WriteLine("OK");
707+
708+
Console.ForegroundColor = ConsoleColor.White;
709+
}
710+
else
711+
{
712+
Console.WriteLine("");
713+
}
714+
}
687715

688716
// all good here
689717
return ExitCodes.OK;

0 commit comments

Comments
 (0)