Skip to content

Commit 62c9e9c

Browse files
committed
remove non-usb ports
1 parent 311e81a commit 62c9e9c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

seriallist.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ func GetList(network bool) ([]OsSerialPort, error) {
4545
if vid != "0000" && pid != "0000" {
4646
arrPorts = append(arrPorts, OsSerialPort{Name: element.Name, IdVendor: vidString, IdProduct: pidString, ISerial: element.SerialNumber})
4747
}
48-
} else {
49-
arrPorts = append(arrPorts, OsSerialPort{Name: element.Name, IdVendor: "", IdProduct: "", ISerial: ""})
5048
}
5149
}
5250

0 commit comments

Comments
 (0)