Browse Source

comments

pull/1155/head
DanielR92 2 years ago
parent
commit
715a33cd28
  1. 8
      src/plugins/zeroExport/SMLCRCTable.h

8
src/plugins/zeroExport/SMLCRCTable.h

@ -5,6 +5,14 @@
#ifdef ARDUINO #ifdef ARDUINO
#include <Arduino.h> #include <Arduino.h>
/*
* 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 = static const uint16_t smlCrcTable[256] PROGMEM =
#else #else
static const uint16_t smlCrcTable[256] = static const uint16_t smlCrcTable[256] =

Loading…
Cancel
Save