From 715a33cd28ac1262f03f90d1d77ce8b74561b602 Mon Sep 17 00:00:00 2001 From: DanielR92 Date: Fri, 29 Dec 2023 12:49:34 +0100 Subject: [PATCH] comments --- src/plugins/zeroExport/SMLCRCTable.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/zeroExport/SMLCRCTable.h b/src/plugins/zeroExport/SMLCRCTable.h index 8f6c1c19..9aee2987 100644 --- a/src/plugins/zeroExport/SMLCRCTable.h +++ b/src/plugins/zeroExport/SMLCRCTable.h @@ -5,6 +5,14 @@ #ifdef ARDUINO #include + + +/* + * This mysterious table is just the CRC of each possible byte. It can be + * computed using the standard bit-at-a-time methods. The polynomial can + * be seen in entry 128, 0x8408. This corresponds to x^0 + x^5 + x^12. + * Add the implicit x^16, and you have the standard CRC-CCITT. + */ static const uint16_t smlCrcTable[256] PROGMEM = #else static const uint16_t smlCrcTable[256] =