Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6b1d1c5

Browse files
author
Akos Kitta
committed
fix: start monitor with the inferred board
1 parent 36115a3 commit 6b1d1c5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎arduino-ide-extension/src/browser/monitor-manager-proxy-client-impl.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { BoardIdentifier, PortIdentifier } from '../common/protocol';
1111
import {
1212
BoardListItem,
1313
boardListItemEquals,
14+
getInferredBoardOrBoard,
1415
} from '../common/protocol/board-list';
1516
import {
1617
Monitor,
@@ -166,13 +167,18 @@ export class MonitorManagerProxyClientImpl
166167
);
167168
}
168169

169-
if (!this.lastConnectedBoard || !this.lastConnectedBoard.board) {
170+
if (!this.lastConnectedBoard) {
171+
return;
172+
}
173+
174+
const board = getInferredBoardOrBoard(this.lastConnectedBoard);
175+
if (!board) {
170176
return;
171177
}
172178
try {
173179
this.clearVisibleNotification();
174180
await this.server().startMonitor(
175-
this.lastConnectedBoard.board,
181+
board,
176182
this.lastConnectedBoard.port,
177183
settings
178184
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /