Skip to content

Fix serial timing and baud rate validation - #18

Open
da-Kai wants to merge 2 commits into
developmentfrom
feature/fix-serial-timing
Open

Fix serial timing and baud rate validation#18
da-Kai wants to merge 2 commits into
developmentfrom
feature/fix-serial-timing

Conversation

@da-Kai

@da-Kai da-Kai commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Align serial inter-frame/inter-character timing with the Modbus spec by correcting microsecond calculations and using a 750µs char timeout above 19200 baud.

Refactor SerialParameters constructors to centralize defaults, enforce baud rate > 0, and add tests for bit-per-character/stop-bit calculations plus invalid baud rate rejection.

Align serial inter-frame/inter-character timing with the Modbus spec by correcting microsecond calculations and using a 750µs char timeout above 19200 baud. Refactor SerialParameters constructors to centralize defaults, enforce baud rate > 0, and add tests for bit-per-character/stop-bit calculations plus invalid baud rate rejection.
@da-Kai
da-Kai requested a review from Howaner September 7, 2026 07:06
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