8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30712d8 commit 7fc2475Copy full SHA for 7fc2475
arduino-ide-extension/src/browser/contributions/upload-sketch.ts
@@ -232,8 +232,8 @@ export class UploadSketch extends SketchContribution {
232
const optimizeForDebug = this.editorMode.compileForDebug;
233
const { selectedPort } = boardsConfig; 6D40
234
const port = selectedPort;
235
- const userFields = this.cachedUserFields.get(this.selectedFqbnAddress());
236
- if (!userFields) {
+ const userFields = this.cachedUserFields.get(this.selectedFqbnAddress()) ?? [] as BoardUserField[];
+ if (userFields.length === 0 && this.boardRequiresUserFields) {
237
this.messageService.error(nls.localize('arduino/sketch/userFieldsNotFoundError', "Can't find user fields for connected board"));
238
return;
239
}
0 commit comments