Skip to content
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

Javascript: Fix wrong crc calculation #940

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

alehed
Copy link
Contributor

@alehed alehed commented Apr 22, 2024

Currently, the javascript code will throw a wrong CRC error even though the crc is correct with a probability of 1 to 65535.

This happens because in the x25Crc method we don't differentiate crcIN === undefined from crcIN === 0.

@tridge tridge merged commit 7b72995 into ArduPilot:master Apr 26, 2024
12 checks passed
@alehed alehed deleted the javascript/fix_crc_calculation branch April 26, 2024 05:43
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.

2 participants