File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -515,10 +515,6 @@ export class ArduinoApp {
515
515
}
516
516
const boardDescriptor = this . boardManager . currentBoard . getBuildConfig ( ) ;
517
517
518
- if ( buildMode === BuildMode . Analyze ) {
519
- args . push ( "compile" ) ;
520
- }
521
-
522
518
if ( this . useArduinoCli ( ) ) {
523
519
args . push ( "-b" , boardDescriptor ) ;
524
520
} else {
@@ -626,7 +622,9 @@ export class ArduinoApp {
626
622
"--programmer" , programmer ,
627
623
"--port" , dc . port ) ;
628
624
} else {
629
- if ( ! this . useArduinoCli ( ) ) {
625
+ if ( this . useArduinoCli ( ) ) {
626
+ args . unshift ( "compile" ) ;
627
+ } else {
630
628
args . push ( "--verify" ) ;
631
629
}
632
630
}
@@ -767,7 +765,7 @@ export class ArduinoApp {
767
765
this . _settings . commandPath ,
768
766
args ,
769
767
undefined ,
770
- { channel : arduinoChannel . channel , stdout : stdoutcb , stderr : stderrcb } ,
768
+ { /* channel: arduinoChannel.channel,*/ stdout : stdoutcb , stderr : stderrcb } ,
771
769
) . then ( async ( ) => {
772
770
const ret = await cleanup ( "ok" ) ;
773
771
if ( ret ) {
You can’t perform that action at this time.
0 commit comments