We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e03dc38 commit cd9365bCopy full SHA for cd9365b
src/arduino/arduino.ts
@@ -110,11 +110,6 @@ export class ArduinoApp {
110
args.push("--board", boardDescriptor);
111
}
112
113
- const selectProgrammer = useProgrammer ? this.getProgrammerString() : null;
114
- if (useProgrammer && !selectProgrammer) {
115
- return;
116
- }
117
-
118
if (!ArduinoWorkspace.rootPath) {
119
vscode.window.showWarningMessage("Cannot find the sketch file.");
120
return;
@@ -133,6 +128,11 @@ export class ArduinoApp {
133
128
134
129
135
130
131
+ const selectProgrammer = useProgrammer ? this.getProgrammerString() : null;
132
+ if (useProgrammer && !selectProgrammer) {
+ return;
+ }
+
136
if ((!dc.configuration || !/upload_method=[^=,]*st[^,]*link/i.test(dc.configuration)) && !dc.port) {
137
await selectSerial();
138
0 commit comments