Discover USB ports only

This will ignore f.ex. bluetooth
This commit is contained in:
Yurii Soldak
2021-05-10 12:13:11 +02:00
committed by Ron Evans
parent e7c6bd3730
commit d7ec9ddcd2
+3 -1
View File
@@ -714,7 +714,9 @@ func getDefaultPort(portCandidates []string) (port string, err error) {
}
for _, p := range portsList {
ports = append(ports, p.Name)
if p.IsUSB {
ports = append(ports, p.Name)
}
}
if ports == nil || len(ports) == 0 {