File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,11 +110,6 @@ export class ArduinoApp {
110
110
args . push ( "--board" , boardDescriptor ) ;
111
111
}
112
112
113
- const selectProgrammer = useProgrammer ? this . getProgrammerString ( ) : null ;
114
- if ( useProgrammer && ! selectProgrammer ) {
115
- return ;
116
- }
117
-
118
113
if ( ! ArduinoWorkspace . rootPath ) {
119
114
vscode . window . showWarningMessage ( "Cannot find the sketch file." ) ;
120
115
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 ) {
133
+ return ;
134
+ }
135
+
136
136
if ( ( ! dc . configuration || ! / u p l o a d _ m e t h o d = [ ^ = , ] * s t [ ^ , ] * l i n k / i. test ( dc . configuration ) ) && ! dc . port ) {
137
137
await selectSerial ( ) ;
138
138
return ;
You can’t perform that action at this time.
0 commit comments