This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -512,7 +512,9 @@ export class ArduinoApp {
512
512
}
513
513
const boardDescriptor = this . boardManager . currentBoard . getBuildConfig ( ) ;
514
514
515
- if ( ! this . useArduinoCli ( ) ) {
515
+ if ( this . useArduinoCli ( ) ) {
516
+ args . push ( "-b" , boardDescriptor ) ;
517
+ } else {
516
518
args . push ( "--board" , boardDescriptor ) ;
517
519
}
518
520
@@ -561,7 +563,6 @@ export class ArduinoApp {
561
563
} else {
562
564
args . push ( "upload" ) ;
563
565
}
564
- args . push ( "-b" , boardDescriptor ) ;
565
566
}
566
567
567
568
if ( dc . port ) {
@@ -591,7 +592,6 @@ export class ArduinoApp {
591
592
} else {
592
593
args . push ( "upload" ) ;
593
594
}
594
- args . push ( "-b" , boardDescriptor ) ;
595
595
}
596
596
597
597
if ( this . useArduinoCli ( ) ) {
@@ -603,14 +603,10 @@ export class ArduinoApp {
603
603
args . push ( "--port" , dc . port ) ;
604
604
if ( ! this . useArduinoCli ( ) ) {
605
605
args . push ( "--verify" ) ;
606
- } else {
607
- args . push ( "compile" , "-b" , boardDescriptor ) ;
608
606
}
609
607
} else {
610
608
if ( ! this . useArduinoCli ( ) ) {
611
609
args . push ( "--verify" ) ;
612
- } else {
613
- args . push ( "compile" , "-b" , boardDescriptor ) ;
614
610
}
615
611
}
616
612
You can’t perform that action at this time.
0 commit comments