File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ internal partial class EspTool
7575 /// Option to output progress messages.
7676 /// Default is <see langword="true"/>.
7777 /// </summary>
78- public VerbosityLevel Verbosity { get ; internal set ; } = VerbosityLevel . Normal ;
78+ public VerbosityLevel Verbosity { get ; set ; }
7979
8080 /// <summary>
8181 /// Flag to report if the target couldn't be reset after flashing it.
@@ -99,8 +99,11 @@ internal EspTool(
9999 int baudRate ,
100100 string flashMode ,
101101 int flashFrequency ,
102- PartitionTableSize ? partitionTableSize )
102+ PartitionTableSize ? partitionTableSize ,
103+ VerbosityLevel verbosity )
103104 {
105+ Verbosity = verbosity ;
106+
104107 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
105108 {
106109 // open/close the COM port to check if it is available
@@ -118,10 +121,10 @@ internal EspTool(
118121 Console . ForegroundColor = ConsoleColor . DarkRed ;
119122
120123 Console . WriteLine ( "" ) ;
121- Console . WriteLine ( "******************* EXCEPTION *****************" ) ;
124+ Console . WriteLine ( "******************** EXCEPTION * *****************" ) ;
122125 Console . WriteLine ( $ "Exception occurred while trying to open <{ serialPort } >:") ;
123126 Console . WriteLine ( $ "{ ex . Message } ") ;
124- Console . WriteLine ( "***********************************************" ) ;
127+ Console . WriteLine ( "************************************************* " ) ;
125128 Console . WriteLine ( "" ) ;
126129
127130 Console . ForegroundColor = ConsoleColor . White ;
Original file line number Diff line number Diff line change @@ -334,7 +334,8 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
334334 o . BaudRate ,
335335 o . Esp32FlashMode ,
336336 o . Esp32FlashFrequency ,
337- o . Esp32PartitionTableSize ) ;
337+ o . Esp32PartitionTableSize ,
338+ _verbosityLevel ) ;
338339 }
339340 catch ( Exception )
340341 {
You can’t perform that action at this time.
0 commit comments