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"'