Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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.

alehed added 2 commits April 22, 2024 17:11
The message contains base 10 integers, not hexadecimal.
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants