Repository navigation
go-serial v0.3.0
Date: 2026-11-12
Previous release: v0.2.1
Summary
Requires Go 1.26 (the OT Fabric floor) and rejects out-of-range values that were silently truncated.
Changes
Fixes
ParseDataBitsandParseStopBitschecked the value after converting it touint8, so out-of-range input such asParseDataBits(264)was accepted as 8. They now check theintfirst.Config.Validaterejects RS-485 RTS delays above the newMaxRS485Delay(2^32-1 ms), which the 32-bit kernel field cannot hold;Openrefuses them too. Before, they wrapped around.- The poll-based wait rejects a file descriptor outside the
int32range withEBADFinstead of truncating it.
Added
MaxRS485Delay.
Breaking changes
go.modnow saysgo 1.26.0; dependants need Go 1.26 or later. CI tests Go 1.26 and 1.27, and the cross-build uses thego.modversion.