Skip to content

fix(windows): resolve FTDI enumeration returning generated serials (#… - #343

Open
VMshall wants to merge 2 commits into
serialport:mainfrom
VMshall:fix-ftdi-enumeration-203
Open

fix(windows): resolve FTDI enumeration returning generated serials (#…#343
VMshall wants to merge 2 commits into
serialport:mainfrom
VMshall:fix-ftdi-enumeration-203

Conversation

@VMshall

@VMshall VMshall commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Fixes incorrect serial number detection and missing interface numbers for FTDI composite devices on Windows.

Changes
Use ancestor_instance_ids() for full device tree traversal , Skip FTDIBUS layers to find the actual USB\... node, Filter out OS-generated serials (return None if invalid) , Add unit tests for FTDIBUS scenarios

Result
Correct serial handling and proper interface number detection on Windows.

VMshall added 2 commits April 7, 2026 19:45
- Allow clippy::incompatible_msrv: stable clippy flags macro-expanded nix
  ioctl helpers against the crate MSRV even though MSRV builds still pass.
- Treat short +<token> prefixes before multi-& composite instance tails as
  non-serials so tests and real devices match issue serialport#203 expectations.
- rustfmt.

Made-with: Cursor
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.

1 participant