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 b4d5e78 commit febf70aCopy full SHA for febf70a
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;
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