From 72326d467eacab3a1c76ecf79168ca3624a93519 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Sat, 29 Jan 2022 20:53:09 -0800 Subject: [PATCH] only show active windows ports --- meshtastic/supported_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/supported_device.py b/meshtastic/supported_device.py index c99ded4..e0de3f1 100755 --- a/meshtastic/supported_device.py +++ b/meshtastic/supported_device.py @@ -173,7 +173,7 @@ def detect_windows_port(sd): system = platform.system() if system == "Windows": - command = 'powershell.exe "Get-PnpDevice | Where-Object{ ($_.DeviceId -like ' + command = 'powershell.exe "Get-PnpDevice -PresentOnly | Where-Object{ ($_.DeviceId -like ' command += f"'*{sd.usb_vendor_id_in_hex.upper()}*'" command += ')} | Format-List"'