Repository navigation
Conversation
…own) The Charge 4 sends name, PID, color, battery etc. all in one 0x12 frame instead of one frame per token. We only read the first token, so it came up as an unknown model with no battery. Tokens with a known size are now read one after another; anything unknown still takes the rest of the frame, so newer speakers parse as before. Same change on Mac and Windows, plus a test from my Charge 4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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.
Hi! Tried the Windows build with my Charge 4 (PID 1F29, fw 3.4.0.0). It connects fine, but showed up as "Unknown model" with no battery.
Turns out the Charge 4 answers
AA 11 00with everything packed into a single 0x12 frame:and we only parsed the first token (the name). This PR reads all of them. Tokens with a known size are read in order; anything unknown still eats the rest of the frame, so the Flip 7 style one-token-per-frame replies parse the same as before.
With this my Charge 4 shows up properly: Squad, 100%, fw 3.4.0.0.
Changed in both the C# and Swift libs + a test from my capture (MAC swapped out). Windows tests pass (30/30). I don't have a Mac, so the Swift side isn't compiled. It's the same change as the C# one, but worth a quick
swift test.Also, in case it's useful for the catalog: it doesn't answer any of the EQ reads (
6C,98,61, P40E01), not even with anEE, so info-only is right for this one.