Skip to content

Fix C port allocation for multiple concurrent devices - #693

Open
Daniiiil1 wants to merge 1 commit into
ROBOTIS-GIT:mainfrom
Daniiiil1:fix/c-multiple-port-allocation
Open

Daniiiil1 wants to merge 1 commit into
ROBOTIS-GIT:mainfrom
Daniiiil1:fix/c-multiple-port-allocation

Conversation

@Daniiiil1

Copy link
Copy Markdown

Summary

  • reuse only closed C port slots instead of overwriting an active serial handle/file descriptor
  • apply the same correction to the Windows, Linux, and macOS C backends
  • preserve the existing behavior for a previously registered device name

Fixes #670.

Testing

  • configured and built the standalone C SDK with CMake on macOS
  • opened two independent pseudo-terminal devices through the C API and verified that both ports opened successfully with distinct indices (0 and 1)
  • git diff --check

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.

Cannot open multiple ports at the same time on C version (with possible solution)

1 participant