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)

This commit is contained in:
Ben
2022-02-01 08:35:21 -05:00
committed by GitHub
parent ef2be1c086
commit a20899ff43

View File

@@ -230,7 +230,8 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
)) {
if (
this.latestValidBoardsConfig.selectedBoard.fqbn === board.fqbn &&
this.latestValidBoardsConfig.selectedBoard.name === board.name
this.latestValidBoardsConfig.selectedBoard.name === board.name &&
this.latestValidBoardsConfig.selectedPort.protocol === board.port?.protocol
) {
this.boardsConfig = {
...this.latestValidBoardsConfig,