diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index 5c8e8eb..ec6b5b4 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -486,7 +486,7 @@ class HWConnect(BaseCLIUnit): " where {$_.DeviceID -like '*VID_6868&PID_8686*'} |" " Select-Object -First 1 FriendlyName |" " % FriendlyName |" - " select-string COM\d+ |" + " select-string COM\\d+ |" "% { $_.matches.value }"], stdout=subprocess.PIPE) res = process.communicate()[0] _comport = res.decode('utf-8').strip()