Skip to content

Commit 8a55c3a

Browse files
committed
Fixed output for USB VID/PID in board list
1 parent 54fd199 commit 8a55c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/board/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func NewBoardList(monitor *discovery.Monitor) *output.BoardList {
116116
Name: board.Name(),
117117
Fqbn: board.FQBN(),
118118
Port: item.Port,
119-
UsbID: fmt.Sprintf("%s:%s - %s", item.ProductID[2:len(item.ProductID)-1], item.VendorID[2:len(item.VendorID)-1], item.SerialNumber),
119+
UsbID: fmt.Sprintf("%s:%s - %s", item.VendorID[2:], item.ProductID[2:], item.SerialNumber),
120120
})
121121
}
122122

0 commit comments

Comments
 (0)