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

Commit cd9365b

Browse files
hlovdaladiazulay
authored andcommitted
Move selectProgrammer down
1 parent e03dc38 commit cd9365b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/arduino/arduino.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ export class ArduinoApp {
110110
args.push("--board", boardDescriptor);
111111
}
112112

113-
const selectProgrammer = useProgrammer ? this.getProgrammerString() : null;
114-
if (useProgrammer && !selectProgrammer) {
115-
return;
116-
}
117-
118113
if (!ArduinoWorkspace.rootPath) {
119114
vscode.window.showWarningMessage("Cannot find the sketch file.");
120115
return;
@@ -133,6 +128,11 @@ export class ArduinoApp {
133128
}
134129
}
135130

131+
const selectProgrammer = useProgrammer ? this.getProgrammerString() : null;
132+
if (useProgrammer && !selectProgrammer) {
133+
return;
134+
}
135+
136136
if ((!dc.configuration || !/upload_method=[^=,]*st[^,]*link/i.test(dc.configuration)) && !dc.port) {
137137
await selectSerial();
138138
return;

0 commit comments

Comments
 (0)