Skip to content

Conversation

@newHeiko
Copy link

@newHeiko newHeiko commented Nov 23, 2025

This includes the changes from #615.

It should fix #567 for relative links and links to bluetooth devices as well.

...to ensure symlinks to Bluetooth devices are found as well.
Leaves check if symlink points to serial port to searchForComPorts.

Fixes Fazecast#567 also for relative symlinks.
if (fcntl(port->handle, F_SETFL, flags))
return 0;
if (setConfigOptions(port->handle, baudRate, &options))
if (setCustomBaudRate(port->handle, baudRate))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intended to be kept? If so, there doesn't seem to be any point of setting the options variable.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because 54bd919 removed setConfigOptions from the library and replaced it with setCustomBaudRate. It's not functionally a part of this change, just required to compile testPollPosix.

I also included is as a separate PR #615 before.

You are right that this was a quick hack to make testPollPosix compile and that it would be good to change/remove more code in testPollPosix. I'll leave it up to @hedgecrw to decide whether to keep this change or have a broken testPollPosix until someone does the full work.

Heiko

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.

Linux Enhancement request: Include symlinks in GetCommPorts return

2 participants