From 717281cd8733069b3f22eca536bdb73665c8c550 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Mon, 11 Sep 2023 09:17:29 +0200 Subject: [PATCH] Sync MK3<->MK4 MMU2 crc --- Firmware/mmu2_crc.cpp | 6 +++--- Firmware/mmu2_crc.h | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Firmware/mmu2_crc.cpp b/Firmware/mmu2_crc.cpp index 20c68f7c5..994518911 100644 --- a/Firmware/mmu2_crc.cpp +++ b/Firmware/mmu2_crc.cpp @@ -2,12 +2,12 @@ #include "mmu2_crc.h" #ifdef __AVR__ -#include + #include #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 diff --git a/Firmware/mmu2_crc.h b/Firmware/mmu2_crc.h index cc8f06dab..9fefbd319 100644 --- a/Firmware/mmu2_crc.h +++ b/Firmware/mmu2_crc.h @@ -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