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

use crc32fast dependency #26

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

steffen252
Copy link
Contributor

Hi,

I noticed that you implemented the CRC-32 algorithm yourself in your project, and it is mentioned that it is a customized version for Tuya devices. However, I observed that the implementation does not seem to differ from the one in the crc32fast library. I might be wrong, but the tests all seem to pass, and it works well to control my Tuya device. I think it would be better to use a widely adopted library here.

Best regards.

@EmilSodergren
Copy link
Owner

Like many parts of the codebase this is 100% stolen from codetheweb's implementation. But you are right. Using existing implementations is always preferrable. I think i will have time to merge this in the weekend. Thanks!

@EmilSodergren EmilSodergren merged commit 4496a26 into EmilSodergren:main Oct 18, 2024
1 of 2 checks passed
# 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