Skip to content

Commit

Permalink
fix: escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
GameTec-live committed Oct 16, 2023
1 parent 3456d4c commit 070db3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/script/chameleon_cli_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 070db3d

Please sign in to comment.