Skip to content

Check for zero-sentinel on Windows #44

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lachlanm-git
Copy link
Contributor

For Windows COM ports, check whether the last byte is a zero-sentinel or not instead of assuming.

Closes #43

list.exe [master] Note the BthModem COM ports are one character too short
  path=\\.\COM,   name=COM,       driver=\Device\BthModem6 
  path=\\.\COM3,  name=COM3,      driver=\Device\BthModem4  
  path=\\.\COM,   name=COM,       driver=\Device\BthModem2 
  path=\\.\COM3,  name=COM3,      driver=\Device\BthModem0 
  path=\\.\COM2,  name=COM2,      driver=\Device\BthModem1 
  path=\\.\COM2,  name=COM2,      driver=\Device\BthModem3 
  path=\\.\COM26, name=COM26,     driver=\Device\VCP0
list.exe [branch]
  path=\\.\COM24, name=COM24,     driver=\Device\BthModem5
  path=\\.\COM3,  name=COM3,      driver=\Device\BthModem6
  path=\\.\COM30, name=COM30,     driver=\Device\BthModem4
  path=\\.\COM5,  name=COM5,      driver=\Device\BthModem2
  path=\\.\COM31, name=COM31,     driver=\Device\BthModem0
  path=\\.\COM29, name=COM29,     driver=\Device\BthModem1
  path=\\.\COM22, name=COM22,     driver=\Device\BthModem3
  path=\\.\COM26, name=COM26,     driver=\Device\VCP0

For COM ports, check whether the last byte is a zero-sentinel or not
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

Successfully merging this pull request may close these issues.

list.exe may drop last caharacter
1 participant