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

Fix CRC16::_update #4

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

manchoz
Copy link
Contributor

@manchoz manchoz commented Mar 31, 2021

This PR fixes an issue in the CRC16::_update method where a uint16_t reverse(uint16_t) function is used instead of the correct uint8_t reverse(uint8_t).

Copied a _reverse8() method from CRC.h.

@RobTillaart
Copy link
Owner

Good find! - seems that the same error is in the CRC32 and CRC64 classes too.

The classes are not (unit) tested so there is some work todo here.

@RobTillaart RobTillaart merged commit 5c76e6e into RobTillaart:master Mar 31, 2021
@RobTillaart
Copy link
Owner

RobTillaart commented Mar 31, 2021

Working on it...


fix and unit test merged...

thanks again for finding!

@manchoz
Copy link
Contributor Author

manchoz commented Apr 1, 2021

@RobTillaart Thank you so much! Nice library, indeed.

@manchoz manchoz deleted the manchoz_fix_crc16_update branch April 1, 2021 07:52
@RobTillaart
Copy link
Owner

Have to fix keywords.txt and then it is ready for new release.

@RobTillaart
Copy link
Owner

0.1.2 released

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