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

Commit 28abd57

Browse files
authored
Don't set commandPath when arduino-cli is true (#1297)
* Don't rewrite `commandPath` when used `arduino-cli`
1 parent bb9d39b commit 28abd57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arduino/arduinoSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class ArduinoSettings implements IArduinoSettings {
7272
this._sketchbookPath = path.join(process.env.HOME, "Arduino");
7373
}
7474

75-
if (this._commandPath === "") {
75+
if (this._commandPath === "" && !this._useArduinoCli) {
7676
this._commandPath = "arduino";
7777
}
7878
} else if (platform === "darwin") {
@@ -92,7 +92,7 @@ export class ArduinoSettings implements IArduinoSettings {
9292
this._sketchbookPath = path.join(process.env.HOME, "Documents/Arduino");
9393
}
9494

95-
if (this._commandPath === "") {
95+
if (this._commandPath === "" && !this._useArduinoCli) {
9696
this._commandPath = "/Contents/MacOS/Arduino";
9797
}
9898
}

0 commit comments

Comments
 (0)