kopia lustrzana https://github.com/micropython/micropython
mpremote: Do not list bogus devices.
Signed-off-by: Mark Blakeney <mark.blakeney@bullet-systems.net>
rodzic
9c7f0659e2
commit
d02d30a216
|
@ -20,6 +20,7 @@ def do_connect(state, args=None):
|
|||
if dev == "list":
|
||||
# List attached devices.
|
||||
for p in sorted(serial.tools.list_ports.comports()):
|
||||
if p.serial_number is not None:
|
||||
print(
|
||||
"{} {} {:04x}:{:04x} {} {}".format(
|
||||
p.device,
|
||||
|
|
Ładowanie…
Reference in New Issue