Skip to content

bugfix(Parameters): Accept any reply status byte as the Parameters prefix - #77

Open
kb1ibt wants to merge 1 commit into
flip-dots:mainfrom
kb1ibt:pr/parameters-status
Open

kb1ibt wants to merge 1 commit into
flip-dots:mainfrom
kb1ibt:pr/parameters-status

Conversation

@kb1ibt

@kb1ibt kb1ibt commented Oct 5, 2026

Copy link
Copy Markdown

Parameters only recognised a 00 prefix, so a reply such as 4827 09 a1021e00 parsed to an empty dict. Any first byte below the first TLV tag (0xa1) is now the reply's status, exposed as ParameterDict.status; pushes like the C2000G2's c421 have none.

Building also wrote no prefix: the If condition combined two construct expressions with Python's or at import time, which left only this._parsing. A parsed reply now builds back to the same bytes.

Parameters only recognised a 00 prefix, so a reply such as 4827 09 a1021e00 parsed to an empty dict. Any first byte below the first TLV tag (0xa1) is now the reply's status, exposed as ParameterDict.status; pushes have none.

Building also wrote no prefix: the If condition combined two construct expressions with Python's `or` at import time, which left only `this._parsing`. A parsed reply now builds back to the same bytes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@kb1ibt
kb1ibt marked this pull request as ready for review October 5, 2026 20:31
@kb1ibt kb1ibt changed the title Accept any reply status byte as the Parameters prefix bugfix(Parameters): Accept any reply status byte as the Parameters prefix Oct 5, 2026

This branch has not been deployed

No deployments
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