Skip to content

Refactor crc8_dvb_s2 Function for Improved Readability and Maintainability#175

Merged
pkendall64 merged 1 commit into
ExpressLRS:masterfrom
MDLZCOOL:refactor-crc8-dvb-s2-func
Apr 23, 2025
Merged

Refactor crc8_dvb_s2 Function for Improved Readability and Maintainability#175
pkendall64 merged 1 commit into
ExpressLRS:masterfrom
MDLZCOOL:refactor-crc8-dvb-s2-func

Conversation

@MDLZCOOL

Copy link
Copy Markdown
Contributor

Description:
This merge request refactors the crc8_dvb_s2 function to enhance code clarity and maintainability. The main changes include:

  • Extracting crc8_dvb_s2 from the MSP class and making it an independent function.
  • Replacing the original bitwise implementation with the GENERIC_CRC8 class, improving code readability and maintainability.
  • Adding the crc.h header file inclusion in msp.cpp.

These modifications help decouple the function from the MSP class and leverage a more structured approach for CRC-8 calculations. Please review and let me know if any further adjustments are needed.

Testing:

  • Verified functionality remains consistent with the previous implementation.
  • Ensured no regression in MSP-related features.

Thanks for your time! 🚀

@pkendall64 pkendall64 merged commit f421d8e into ExpressLRS:master Apr 23, 2025
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