File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
nanoFirmwareFlasher.Library Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ To update the firmware of a nano device with a local firmware file (for example
332332This file has to be a binary file with a valid nanoCLR from a build. No checks or validations are performed on the file content.
333333
334334``` console
335- nanoff --nanodevice --serialport COM9 --binfile "C:\nf-interpreter\build\nanoclr.bin"
335+ nanoff --nanodevice --update -- serialport COM9 --clrfile "C:\nf-interpreter\build\nanoclr.bin"
336336```
337337
338338### Get details from a nano device
Original file line number Diff line number Diff line change @@ -372,15 +372,15 @@ public async Task<ExitCodes> UpdateDeviceClrAsync(
372372 if ( attemptToLaunchBooter )
373373 {
374374 // try to reboot target
375- if ( verbosity > VerbosityLevel . Normal )
375+ if ( verbosity >= VerbosityLevel . Normal )
376376 {
377377 Console . ForegroundColor = ConsoleColor . White ;
378378 Console . Write ( "Rebooting..." ) ;
379379 }
380380
381381 nanoDevice . DebugEngine . RebootDevice ( RebootOptions . NormalReboot ) ;
382382
383- if ( verbosity > VerbosityLevel . Normal )
383+ if ( verbosity >= VerbosityLevel . Normal )
384384 {
385385 Console . ForegroundColor = ConsoleColor . Green ;
386386 Console . WriteLine ( "OK" ) ;
@@ -697,6 +697,23 @@ public ExitCodes DeployApplication(
697697 {
698698 Console . WriteLine ( "" ) ;
699699 }
700+
701+ // try to reboot target
702+ if ( verbosity >= VerbosityLevel . Normal )
703+ {
704+ Console . ForegroundColor = ConsoleColor . White ;
705+ Console . Write ( "Rebooting..." ) ;
706+ }
707+
708+ // reboot device
709+ nanoDevice . DebugEngine . RebootDevice ( RebootOptions . NormalReboot ) ;
710+
711+ if ( verbosity >= VerbosityLevel . Normal )
712+ {
713+ Console . ForegroundColor = ConsoleColor . Green ;
714+ Console . WriteLine ( "OK" ) ;
715+ Console . ForegroundColor = ConsoleColor . White ;
716+ }
700717 }
701718
702719 // all good here
You can’t perform that action at this time.
0 commit comments