only show active windows ports

This commit is contained in:
Mike Kinney committed 2022-01-29 20:53:09 -08:00
1 parent a0944961b5
commit 72326d467e
1 file changed
+1 -1
+1 -1
View File
@@ -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"'