kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
rodzic
3f4a262abe
commit
ee3048d985
|
@ -88,7 +88,11 @@ def get_interfaces() -> List[Interface]:
|
||||||
t.name, d.vid, d.pid, d.device)
|
t.name, d.vid, d.pid, d.device)
|
||||||
iface = Interface('serial', t.name)
|
iface = Interface('serial', t.name)
|
||||||
iface.port = d.device
|
iface.port = d.device
|
||||||
|
try:
|
||||||
iface.open()
|
iface.open()
|
||||||
|
except serial.SerialException:
|
||||||
|
logger.warning("Could not open serial port %s", d.device)
|
||||||
|
continue
|
||||||
iface.comment = get_comment(iface)
|
iface.comment = get_comment(iface)
|
||||||
iface.close()
|
iface.close()
|
||||||
interfaces.append(iface)
|
interfaces.append(iface)
|
||||||
|
|
Ładowanie…
Reference in New Issue