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

return port info to user so it can be parsed. Also fix a bug. #96

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

MattEttus
Copy link
Contributor

list_ports collects useful info on ports, but just prints it to the console, which is not useful for parsing. By returning all that data to the user, it can be parsed to find the desired serial port device automatically.

Also, the "port == C_NULL && return" line causes the sp_free_port_list(ports) call to never be called. This is also fixed in this pull request.

@sjkelly
Copy link
Member

sjkelly commented Dec 15, 2023

Thanks!

@sjkelly sjkelly merged commit 0a39ade into JuliaIO:master Dec 15, 2023
1 check passed
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.

2 participants