Skip to content

CAN FD support for Linux#58

Merged
samcrow merged 3 commits intosamcrow:masterfrom
optlink:linux
Oct 28, 2025
Merged

CAN FD support for Linux#58
samcrow merged 3 commits intosamcrow:masterfrom
optlink:linux

Conversation

@optlink
Copy link
Contributor

@optlink optlink commented Oct 23, 2025

This PR has three major changes:

  1. LinuxCan is now generic, accepting CanSocket or CanFdSocket.
  2. LinuxCan will now properly convert ErrorKind::WouldBlock to nb::Error::WouldBlock on receive.
  3. receive on CoreNode now loops until all available transfers are handled instead of handling one at a time.

This enables cleaner async support with Tokio and CAN FD support on Linux.

@samcrow
Copy link
Owner

samcrow commented Oct 24, 2025

Thanks for contributing. This looks good. Please add an item to the changelog in the Unreleased section.

@optlink
Copy link
Contributor Author

optlink commented Oct 27, 2025

Done

@samcrow samcrow merged commit d5c0c4d into samcrow:master Oct 28, 2025
1 check passed
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