Skip to content

Commit

Permalink
and the other one...
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Jun 12, 2020
1 parent d229364 commit def5501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pm3
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function get_pm3_list_WSL {
# Need to look for this first, the call to Win32_serialport "crashes" then native bt serial port. Don't ask why.
#BT direct SERIAL PORTS (COM)
if $FINDBTRFCOMM; then
for DEV in $(powershell.exe -command "Get-CimInstance -ClassName Win32_PnPEntity | Where-Object Caption -like 'Standard Serial over Bluetooth link (COM*' | Select Name" 2> /dev/null | awk '$0 ~ /COM/{print substr($6,2,5)}'); do
for DEV in $(powershell.exe -command "Get-CimInstance -ClassName Win32_PnPEntity | Where-Object Caption -like 'Standard Serial over Bluetooth link (COM*' | Select Name" 2> /dev/null | awk 'match($0,/COM([0-9]+)/,m){print m[1]}'); do

DEV=${DEV/ */}
DEV="/dev/ttyS${DEV#COM}"
Expand Down

0 comments on commit def5501

Please sign in to comment.