mirror of
https://github.com/meshtastic/python.git
synced 2025-12-28 10:27:54 -05:00
fix lint complaining about long lines
This commit is contained in:
@@ -175,7 +175,8 @@ def detect_windows_port(sd):
|
||||
system = platform.system()
|
||||
|
||||
if system == "Windows":
|
||||
command = 'powershell.exe "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8; Get-PnpDevice -PresentOnly | Where-Object{ ($_.DeviceId -like '
|
||||
command = ('powershell.exe "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8;'
|
||||
'Get-PnpDevice -PresentOnly | Where-Object{ ($_.DeviceId -like ')
|
||||
command += f"'*{sd.usb_vendor_id_in_hex.upper()}*'"
|
||||
command += ')} | Format-List"'
|
||||
|
||||
|
||||
@@ -297,7 +297,8 @@ def detect_supported_devices():
|
||||
|
||||
elif system == "Windows":
|
||||
# if windows, run Get-PnpDevice
|
||||
_, sp_output = subprocess.getstatusoutput('powershell.exe "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8; Get-PnpDevice -PresentOnly | Format-List"')
|
||||
_, sp_output = subprocess.getstatusoutput('powershell.exe "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8;'
|
||||
'Get-PnpDevice -PresentOnly | Format-List"')
|
||||
#print(f'sp_output:{sp_output}')
|
||||
vids = get_unique_vendor_ids()
|
||||
for vid in vids:
|
||||
|
||||
Reference in New Issue
Block a user