mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-17 09:36:33 +00:00
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:
parent
ef2be1c086
commit
a20899ff43
@ -230,7 +230,8 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
|
|||||||
)) {
|
)) {
|
||||||
if (
|
if (
|
||||||
this.latestValidBoardsConfig.selectedBoard.fqbn === board.fqbn &&
|
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.boardsConfig = {
|
||||||
...this.latestValidBoardsConfig,
|
...this.latestValidBoardsConfig,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user