Skip to content

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

Diff for: arduino-ide-extension/src/browser/monitor-manager-proxy-client-impl.ts

+8-2
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)