From 070db3d773b57664002c8fd49508876b23fe7a60 Mon Sep 17 00:00:00 2001 From: GameTec_live Date: Mon, 16 Oct 2023 21:09:26 +0200 Subject: [PATCH] fix: escape sequence --- software/script/chameleon_cli_unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index 5c8e8eb7..ec6b5b48 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -486,7 +486,7 @@ def on_exec(self, args: argparse.Namespace): " 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()