-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ANT command status response (page 71) #222
Conversation
Some questions: 1
2Please add comment # rollover at 254, as 255 indicates no command received 3
is replaced by
although it should be the same
and then 4Like previous; I think the result is the same:
Or do I miss the essential for 3 and 4? |
1, 3, 4: The unpage functions do unit conversions too. So
So we are trying to pass a float (which is what causes the crash). I don't particularly like accessing 2: Yes, good catch. Also I will add a comment. |
@switchabl agree; plse check for consistency👍 |
Hopefully everything is consistent and comments are clear now. Let me know if there is anything else. |
Thanks and done |
* #216 GUI crash raspberry v1 * #216 GUI crash raspberry v2 * #216 GUI crash raspberry v2 * GUI improvements, Sponsor, Calibrate * #189 preparation * #189 preparation * Update README.md * Update README.md * Fix ANT command status response (page 71) (#222) * Fix ANT command status response (page 71) * Fix initial page 71 sequence number, add comments explaining page 71 data * #216 GUI crash raspberry v4 * Fix ANT command status response (page 71) #222 Change history updated * #216 GUI crash raspberry v5 * #216 GUI crash raspberry v1 * #216 GUI crash raspberry v2 * #216 GUI crash raspberry v2 * GUI improvements, Sponsor, Calibrate and #222 * #216 GUI crash raspberry v4 * #216 GUI crash raspberry v5 Co-authored-by: WouterJD <[email protected]> Co-authored-by: Wouter Dubbeldam <[email protected]> Co-authored-by: switchabl <[email protected]>
The handling of page 71 command status pages is broken. The data bytes need to be the raw bytes from the control command, but we are trying to pass floats instead, causing FortiusANT to crash (#101 (comment)). Also the max value for the sequence # should be 254, as 255 indicates no command received [0]
Awaiting confirmation from @smithnb that this indeed fixes the issue.
[0] Section 8.12.3 of ANT+ FE specification