chore(bw): Remove doubled CRC table, saving 512 bytes of flash (#2990)

....  thus waisting 512 bytes in Flash for nothing.
This commit is contained in:
Raphael Coeffic
2023-01-18 11:05:45 +10:00
committed by GitHub
parent fa4e6d795c
commit a25bc828cb
3 changed files with 75 additions and 74 deletions
+1 -2
View File
@@ -36,11 +36,10 @@ class Pxx1CrcMixin {
void addToCrc(uint8_t byte)
{
crc = (crc << 8) ^ (crc16tab_1189[((crc >> 8) ^ byte) & 0xFF]);
crc = (crc << 8) ^ (crc16tab[CRC_1189][((crc >> 8) ^ byte) & 0xFF]);
}
uint16_t crc;
static const uint16_t CRCTable[];
};
template <class BitTransport>