9uint8_t
calcCRC(uint8_t data[], uint8_t dataLength)
11 uint8_t crc, currentByte;
15 for (uint8_t j = 0; j < dataLength; j++) {
16 currentByte = data[j];
17 for (uint8_t k = 0; k < 8; k++) {
18 if ((crc >> 7) ^ (currentByte & 0x01)) {
20 crc = (crc << 1) ^ 0x07;