8000 Add dialog to insert user fields for board that require them to upload by silvanocerza · Pull Request #550 · arduino/arduino-ide · GitHub
[go: up one dir, main page]

Skip to content

Add dialog to insert user fields for board that require them to upload #550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 25, 2021
Prev Previous commit
Next Next commit
Fix serial upload not working with all boards
  • Loading branch information
silvanocerza authored and Alberto Iannaccone committed Nov 24, 2021
commit 624abbe0b0315f4e432f8fcda86bbaed8fc926d2
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ export class UploadSketch extends SketchContribution {
const optimizeForDebug = this.editorMode.compileForDebug;
const { selectedPort } = boardsConfig;
const port = selectedPort;
const userFields = this.cachedUserFields.get(this.selectedFqbnAddress());
if (!userFields) {
const userFields =
this.cachedUserFields.get(this.selectedFqbnAddress()) ?? [];
if (userFields.length === 0 && this.boardRequiresUserFields) {
this.messageService.error(
nls.localize(
'arduino/sketch/userFieldsNotFoundError',
Expand Down
0