File tree 1 file changed +8
-12
lines changed
1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -550,10 +550,10 @@ export class ArduinoApp {
550
550
return false ;
551
551
}
552
552
553
- if ( ! this . useArduinoCli ( ) ) {
554
- args . push ( "--upload" ) ;
555
- } else {
553
+ if ( this . useArduinoCli ( ) ) {
556
554
args . push ( "compile" , "--upload" ) ;
555
+ } else {
556
+ args . push ( "--upload" ) ;
557
557
}
558
558
559
559
if ( dc . port ) {
@@ -586,17 +586,13 @@ export class ArduinoApp {
586
586
return false ;
587
587
}
588
588
589
- if ( ! this . useArduinoCli ( ) ) {
590
- args . push ( "--upload" ) ;
591
- } else {
592
- // TODO: add the --clean argument to the cli args when v 0.14 is released (this will clean up the build folder after uploading)
593
- args . push ( "upload" ) ;
594
- }
595
-
596
589
if ( this . useArduinoCli ( ) ) {
597
- args . push ( "--programmer" , programmer )
590
+ args . push ( "upload" ,
591
+ "--programmer" , programmer ) ;
598
592
} else {
599
- args . push ( "--useprogrammer" , "--pref" , `programmer=arduino:${ programmer } ` ) ;
593
+ args . push ( "--upload" ,
594
+ "--useprogrammer" ,
595
+ "--pref" , `programmer=arduino:${ programmer } ` ) ;
600
596
}
601
597
602
598
args . push ( "--port" , dc . port ) ;
You can’t perform that action at this time.
0 commit comments