Skip to content

Commit fff6075

Browse files
misc corrections
1 parent eed8a69 commit fff6075

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arduino-ide-extension/src/browser/contributions/upload-sketch.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -212,19 +212,19 @@ export class UploadSketch extends SketchContribution {
212212
// uploadInProgress will be set to false whether the upload fails or not
213213
this.uploadInProgress = true;
214214

215-
// here we inform the "monitorManagerProxyClient" an upload is in progress,
216-
// setting a boolean flag, this is to prevent triggering of the
217-
// "usual side effects" if a serial port change occurs during upload
218-
// (expected on windows for some boards)
219-
this.monitorManagerProxyClient.setUploadInProgress(true);
220-
221215
this.onDidChangeEmitter.fire();
222216
const sketch = await this.sketchServiceClient.currentSketch();
223217
if (!CurrentSketch.isValid(sketch)) {
224218
return;
225219
}
226220

227221
try {
222+
// here we inform the "monitorManagerProxyClient" an upload is in progress,
223+
// setting a boolean flag, this is to prevent triggering of the
224+
// "usual side effects" if a serial port change occurs during upload
225+
// (expected on windows for some boards)
226+
this.monitorManagerProxyClient.setUploadInProgress(true);
227+
228228
const { boardsConfig } = this.boardsServiceClientImpl;
229229
const [fqbn, { selectedProgrammer }, verify, verbose, sourceOverride] =
230230
await Promise.all([

0 commit comments

Comments
 (0)