We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97399cf commit 624abbeCopy full SHA for 624abbe
arduino-ide-extension/src/browser/contributions/upload-sketch.ts
@@ -230,8 +230,9 @@ export class UploadSketch extends SketchContribution {
230
const optimizeForDebug = this.editorMode.compileForDebug;
231
const { selectedPort } = boardsConfig;
232
const port = selectedPort;
233
- const userFields = this.cachedUserFields.get(this.selectedFqbnAddress());
234
- if (!userFields) {
+ const userFields =
+ this.cachedUserFields.get(this.selectedFqbnAddress()) ?? [];
235
+ if (userFields.length === 0 && this.boardRequiresUserFields) {
236
this.messageService.error(
237
nls.localize(
238
'arduino/sketch/userFieldsNotFoundError',
0 commit comments