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

Commit

Permalink
Reverse and merge tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hlovdal authored and adiazulay committed Jan 19, 2021
1 parent 5a49b97 commit e591480
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/arduino/arduino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,10 @@ export class ArduinoApp {
return false;
}

if (!this.useArduinoCli()) {
args.push("--upload");
} else {
if (this.useArduinoCli()) {
args.push("compile", "--upload");
} else {
args.push("--upload");
}

if (dc.port) {
Expand Down Expand Up @@ -586,17 +586,13 @@ export class ArduinoApp {
return false;
}

if (!this.useArduinoCli()) {
args.push("--upload");
} else {
// TODO: add the --clean argument to the cli args when v 0.14 is released (this will clean up the build folder after uploading)
args.push("upload");
}

if (this.useArduinoCli()) {
args.push("--programmer", programmer)
args.push("upload",
"--programmer", programmer);
} else {
args.push("--useprogrammer", "--pref", `programmer=arduino:${programmer}`);
args.push("--upload",
"--useprogrammer",
"--pref", `programmer=arduino:${programmer}`);
}

args.push("--port", dc.port);
Expand Down

0 comments on commit e591480

Please sign in to comment.