-uint16_t crc16_ccitt_rev(uint8_t const *message, int length) {
- return crc16(message, length, 0x0000, 0x1021);
-}
\ No newline at end of file
+uint16_t crc16_ccitt_kermit(uint8_t const *message, int length) {
+ uint16_t val = crc16(message, length, 0x0000, CRC16_POLY_CCITT);
+ return SwapBits(val, 16);
+}