8000 IDE to run CLI with auto assigned port by fstasi · Pull Request #673 · arduino/arduino-ide · GitHub
[go: up one dir, main page]

Skip to content

IDE to run CLI with auto assigned port #673

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 6 commits into from
Dec 9, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix upload blocked when selectedBoard.port is undefined
  • Loading branch information
Alberto Iannaccone committed Dec 9, 2021
commit 5cab51dca4ef7eb6a0a6d16c2abbcfdcb498c0d3
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export class UploadSketch extends SketchContribution {
if (!fqbn) {
return '';
}
const address = boardsConfig.selectedBoard?.port?.address;
const address =
boardsConfig.selectedBoard?.port?.address ||
boardsConfig.selectedPort?.address;
if (!address) {
return '';
}
Expand Down Expand Up @@ -277,8 +279,8 @@ export class UploadSketch extends SketchContribution {
{ timeout: 3000 }
);
} catch (e) {
let errorMessage = "";
if (typeof e === "string") {
let errorMessage = '';
if (typeof e === 'string') {
errorMessage = e;
} else {
errorMessage = e.toString();
Expand Down
0