File tree 2 files changed +4
-7
lines changed
arduino-ide-extension/src
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ export class BoardsServiceProvider
202
202
const lastBoardsConfigOnUpload = this . lastBoardsConfigOnUpload ;
203
203
204
204
if ( boardOnAppearedPort && lastBoardsConfigOnUpload . selectedBoard ) {
205
- const boardIsSameHardware = Board . sameDistinctHardwareAs (
205
+ const boardIsSameHardware = Board . hardwareIdEquals (
206
206
boardOnAppearedPort ,
207
207
lastBoardsConfigOnUpload . selectedBoard
208
208
) ;
@@ -338,7 +338,7 @@ export class BoardsServiceProvider
338
338
? selectedBoard
339
339
: this . _availableBoards . find (
340
340
( availableBoard ) =>
341
- Board . sameDistinctHardwareAs ( availableBoard , selectedBoard ) ||
341
+ Board . hardwareIdEquals ( availableBoard , selectedBoard ) ||
342
342
Board . sameAs ( availableBoard , selectedBoard )
343
343
) ;
344
344
if (
@@ -370,7 +370,7 @@ export class BoardsServiceProvider
370
370
( { state } ) => state !== AvailableBoard . State . incomplete
371
371
) ) {
372
372
if (
373
- ( Board . sameDistinctHardwareAs (
373
+ ( Board . hardwareIdEquals (
374
374
this . latestValidBoardsConfig . selectedBoard ,
375
375
board
376
376
) ||
Original file line number Diff line number Diff line change @@ -554,10 +554,7 @@ export namespace Board {
554
554
return left . name === right . name && left . fqbn === right . fqbn ;
555
555
}
556
556
557
- export function sameDistinctHardwareAs (
558
- left : Board ,
559
- right : string | Board
560
- ) : boolean {
557
+ export function hardwareIdEquals ( left : Board , right : Board ) : boolean {
561
558
if ( Board . is ( right ) && left . port && right . port ) {
562
559
const { hardwareId : leftHardwareId } = left . port ;
563
560
const { hardwareId : rightHardwareId } = right . port ;
You can’t perform that action at this time.
0 commit comments