Skip to content

Conversation

@gkuga
Copy link

@gkuga gkuga commented Sep 7, 2025

Related issue: #1

  • Move LinuxRS485Config struct and RS485 ioctl logic to serial_rs485_linux.go and serial_rs485_unix.go for better platform separation.
  • Remove platform-independent RS485Config from Mode and serial.go.
  • Add stub implementations for non-Linux platforms to return clear errors.
  • Remove RS485 logic from unixPort and nativeOpen; now handled via explicit EnableRS485 method on Linux only.
  • Improves cross-platform clarity and binary compatibility.

- Move LinuxRS485Config struct and RS485 ioctl logic to serial_rs485_linux.go and serial_rs485_unix.go for better platform separation.
- Remove platform-independent RS485Config from Mode and serial.go.
- Add stub implementations for non-Linux platforms to return clear errors.
- Remove RS485 logic from unixPort and nativeOpen; now handled via explicit EnableRS485 method on Linux only.
- Improves cross-platform clarity and binary compatibility.
@gkuga gkuga merged commit 66cd1d4 into master Sep 7, 2025
2 checks passed
@gkuga gkuga deleted the refactor/rs485 branch September 7, 2025 13:15
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