Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit e591480

Browse files
hlovdaladiazulay
authored andcommitted
Reverse and merge tests
1 parent 5a49b97 commit e591480

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/arduino/arduino.ts

+8-12
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@ export class ArduinoApp {
550550
return false;
551551
}
552552

553-
if (!this.useArduinoCli()) {
554-
args.push("--upload");
555-
} else {
553+
if (this.useArduinoCli()) {
556554
args.push("compile", "--upload");
555+
} else {
556+
args.push("--upload");
557557
}
558558

559559
if (dc.port) {
@@ -586,17 +586,13 @@ export class ArduinoApp {
586586
return false;
587587
}
588588

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-
596589
if (this.useArduinoCli()) {
597-
args.push("--programmer", programmer)
590+
args.push("upload",
591+
"--programmer", programmer);
598592
} else {
599-
args.push("--useprogrammer", "--pref", `programmer=arduino:${programmer}`);
593+
args.push("--upload",
594+
"--useprogrammer",
595+
"--pref", `programmer=arduino:${programmer}`);
600596
}
601597

602598
args.push("--port", dc.port);

0 commit comments

Comments
 (0)