Sync MK3<->MK4 MMU2 crc
This commit is contained in:
parent
f235976f26
commit
717281cd87
|
|
@ -6,8 +6,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace modules {
|
namespace modules {
|
||||||
|
// clang-format off
|
||||||
namespace crc {
|
namespace crc {
|
||||||
|
|
||||||
#ifdef __AVR__
|
#ifdef __AVR__
|
||||||
uint8_t CRC8::CCITT_update(uint8_t crc, uint8_t b) {
|
uint8_t CRC8::CCITT_update(uint8_t crc, uint8_t b) {
|
||||||
return _crc8_ccitt_update(crc, 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);
|
return CCITT_updateCX(crc, b);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace crc
|
} // namespace crc
|
||||||
|
// clang-format on
|
||||||
} // namespace modules
|
} // namespace modules
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@
|
||||||
|
|
||||||
namespace modules {
|
namespace modules {
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
// prevent silly indenting of the whole file
|
||||||
|
|
||||||
/// Contains all the necessary functions for computation of CRC
|
/// Contains all the necessary functions for computation of CRC
|
||||||
namespace crc {
|
namespace crc {
|
||||||
|
|
||||||
|
|
@ -40,4 +43,6 @@ public:
|
||||||
|
|
||||||
} // namespace crc
|
} // namespace crc
|
||||||
|
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
} // namespace modules
|
} // namespace modules
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue