Skip to content

[hal] Fix USB serial port assignment in SerialHelper#8689

Open
nobody5050 wants to merge 1 commit intowpilibsuite:mainfrom
nobody5050:main
Open

[hal] Fix USB serial port assignment in SerialHelper#8689
nobody5050 wants to merge 1 commit intowpilibsuite:mainfrom
nobody5050:main

Conversation

@nobody5050
Copy link
Copy Markdown
Contributor

Avoid mutating the sorted hub path list when assigning an unclaimed USB serial port. This keeps the second USB device from reusing the first device's mapping, and resets cached hub/resource state before rescanning.

Specifically, this is the fix I settled on for the issue with ConnectorX devices being unable to connect alongside CANivore devices.

@nobody5050 nobody5050 requested a review from a team as a code owner March 18, 2026 04:17
@github-actions github-actions bot added the component: hal Hardware Abstraction Layer label Mar 18, 2026
Avoid mutating the sorted hub path list when assigning an unclaimed USB serial port. This keeps the second USB device from reusing the first device's mapping, and resets cached hub/resource state before rescanning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: hal Hardware Abstraction Layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant