mirror of
https://github.com/meshtastic/python.git
synced 2026-01-15 03:07:57 -05:00
only show active windows ports
This commit is contained in:
@@ -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"'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user