File tree 1 file changed +16
-5
lines changed
arduino-ide-extension/src/browser/boards
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -370,13 +370,24 @@ export class BoardsServiceProvider
370
370
( { state } ) => state !== AvailableBoard . State . incomplete
371
371
) ) {
372
372
if (
373
- ( Board . hardwareIdEquals (
373
+ Board . hardwareIdEquals (
374
374
this . latestValidBoardsConfig . selectedBoard ,
375
375
board
376
- ) ||
377
- ( this . latestValidBoardsConfig . selectedBoard . fqbn === board . fqbn &&
378
- this . latestValidBoardsConfig . selectedBoard . name ===
379
- board . name ) ) &&
376
+ )
377
+ ) {
378
+ this . boardsConfig = {
379
+ selectedBoard : {
380
+ ...this . latestValidBoardsConfig . selectedBoard ,
381
+ port : board . port ,
382
+ } ,
383
+ selectedPort : board . port ,
384
+ } ;
385
+ return true ;
386
+ }
387
+
388
+ if (
389
+ this . latestValidBoardsConfig . selectedBoard . fqbn === board . fqbn &&
390
+ this . latestValidBoardsConfig . selectedBoard . name === board . name &&
380
391
Port . sameAs ( this . latestValidBoardsConfig . selectedPort , board . port )
381
392
) {
382
393
this . boardsConfig = this . latestValidBoardsConfig ;
You can’t perform that action at this time.
0 commit comments