Skip to content

Commit a20899f

Browse files
authored
When a new port is connected and checking to connect to it because previously connected board matches the name / fqbn, also check that the protocol matches. (#792)
1 parent ef2be1c commit a20899f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
230230
)) {
231231
if (
232232
this.latestValidBoardsConfig.selectedBoard.fqbn === board.fqbn &&
233-
this.latestValidBoardsConfig.selectedBoard.name === board.name
233+
this.latestValidBoardsConfig.selectedBoard.name === board.name &&
234+
this.latestValidBoardsConfig.selectedPort.protocol === board.port?.protocol
234235
) {
235236
this.boardsConfig = {
236237
...this.latestValidBoardsConfig,

0 commit comments

Comments
 (0)