Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm3.sh - more than 10 comports. #777

Closed
iceman1001 opened this issue Jun 11, 2020 · 2 comments
Closed

pm3.sh - more than 10 comports. #777

iceman1001 opened this issue Jun 11, 2020 · 2 comments

Comments

@iceman1001
Copy link
Collaborator

Describe the bug
when finding a comport larger than 10, com10 etc, it reports it as com1.

To Reproduce

  1. assign a bluetooth comport above 10
  2. ./pm3 --list

Expected behavior
More than 10comports
and the comports above 10 should have correct numbering.

@doegox
Copy link
Contributor

doegox commented Jun 11, 2020

Can you show me a sample of

powershell.exe -command "Get-CimInstance -ClassName Win32_PnPEntity | Where-Object Caption -like 'Standard Serial over Bluetooth link (COM*' | Select Name" 2> /dev/null 

We need to fix the | awk '$0 ~ /COM/{print substr($6,2,4)}'

@iceman1001
Copy link
Collaborator Author

PS C:\Users\User> powershell.exe -command "Get-CimInstance -ClassName Win32_PnPEntity | Where-Object Caption -like 'Standard Serial over Bluetooth link (COM*' | Select Name"

Name
----
Standard Serial over Bluetooth link (COM10)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants