Repository navigation
AnyTone D578/D890: display switches as Off/On toggles - #162
Merged
Merged
Conversation
Six display settings were typed as raw 0-255 integers because the dmr-tools descriptor publishes them as full-byte ints, while the CPS shows each as an Off/On dropdown (Optional Setting > Display): Show volume bar, Show Clock, Show menu separator, Keep last caller, Show last caller on boot, and (D578 only) Enable call-end notification. They now encode as SK::Bool (0/1) with a boolean schema field. Every real image on hand (6 D578, 4 D890) stores 0 or 1 at each byte, and as_bool() still accepts a profile's previously saved integer. Not yet confirmed on either radio's own screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six AnyTone display settings showed as raw 0–255 number boxes because the dmr-tools descriptor publishes them as full-byte integers. The AnyTone CPS shows each one as an Off/On dropdown (Optional Setting > Display). They're now
SK::Boolwith a boolean schema field.Checked at the desk: every real image on hand (6 D578, 4 D890) stores 0 or 1 at each byte. The D578 generator's anchor check passes, and the regenerated D578 table and schema match these files exactly. The D890 table matches its updated generator. Profiles saved with the old integer still write correctly, because
as_bool()accepts 0/1.Not checked: none of these has been confirmed on either radio's own screen.
The D868 needed no changes. Its table came from the CPS, so these were already toggles there.
🤖 Generated with Claude Code