Skip to content

Conversation

icewind1991
Copy link
Member

serialport's autodetect doesn't provide any port information when using musl linux we can do some manual parsing of sysfs to get the relevant bits without udev.

This doesn't handle as many cases as udev proper (it doesn't give the product name for half of the devices in my testing) and probably has more things not covered but it's better than nothing :)

Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

Looks fine to me, though I'm unfortunately not really familiar with musl so I'm kind of assuming it's correct 😄

@icewind1991 icewind1991 merged commit 03b0f18 into master Dec 21, 2021
@icewind1991 icewind1991 deleted the serial-detect-musl branch December 21, 2021 21:06
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