Fix bluetooth and relative symlinks#616
Conversation
...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)) |
There was a problem hiding this comment.
Is this change intended to be kept? If so, there doesn't seem to be any point of setting the options variable.
There was a problem hiding this comment.
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
This includes the changes from #615.
It should fix #567 for relative links and links to bluetooth devices as well.