Skip to content

Javascript: Fix wrong crc calculation#940

Merged
tridge merged 2 commits intoArduPilot:masterfrom
alehed:javascript/fix_crc_calculation
Apr 26, 2024
Merged

Javascript: Fix wrong crc calculation#940
tridge merged 2 commits intoArduPilot:masterfrom
alehed:javascript/fix_crc_calculation

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
@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