Skip to content

Commit dd9d4f9

Browse files
align logic with deriveBoardConfigToAutoSelect
1 parent 7386232 commit dd9d4f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arduino-ide-extension/src/browser/boards/boards-service-provider.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,11 @@ export class BoardsServiceProvider
375375
board
376376
)
377377
) {
378+
const { name, fqbn } = this.latestValidBoardsConfig.selectedBoard;
378379
this.boardsConfig = {
379380
selectedBoard: {
380-
...this.latestValidBoardsConfig.selectedBoard,
381+
name: board.name || name,
382+
fqbn: board.fqbn || fqbn,
381383
port: board.port,
382384
},
383385
selectedPort: board.port,

0 commit comments

Comments
 (0)