Backpack
Backpack copied to clipboard
Refactor crc8_dvb_s2 Function for Improved Readability and Maintainability
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! 🚀