Sync MK3<->MK4 MMU2 crc

This commit is contained in:
D.R.racer 2023-09-11 09:17:29 +02:00 committed by DRracer
parent f235976f26
commit 717281cd87
2 changed files with 8 additions and 3 deletions

View File

@ -2,12 +2,12 @@
#include "mmu2_crc.h"
#ifdef __AVR__
#include <util/crc16.h>
#include <util/crc16.h>
#endif
namespace modules {
// clang-format off
namespace crc {
#ifdef __AVR__
uint8_t CRC8::CCITT_update(uint8_t crc, uint8_t b) {
return _crc8_ccitt_update(crc, b);
@ -17,6 +17,6 @@ uint8_t CRC8::CCITT_update(uint8_t crc, uint8_t b) {
return CCITT_updateCX(crc, b);
}
#endif
} // namespace crc
// clang-format on
} // namespace modules

View File

@ -4,6 +4,9 @@
namespace modules {
// clang-format off
// prevent silly indenting of the whole file
/// Contains all the necessary functions for computation of CRC
namespace crc {
@ -40,4 +43,6 @@ public:
} // namespace crc
// clang-format on
} // namespace modules