summaryrefslogtreecommitdiffhomepage
path: root/src/crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crc.c')
-rw-r--r--src/crc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crc.c b/src/crc.c
index db852f6cb..463c7abe6 100644
--- a/src/crc.c
+++ b/src/crc.c
@@ -15,7 +15,7 @@
// carry
#define CRC_16_CCITT 0x11021ul //x^16+x^12+x^5+1
#define CRC_XOR_PATTERN (CRC_16_CCITT << 8)
-#define CRC_CARRY_BIT (1 << 24)
+#define CRC_CARRY_BIT (0x01000000)
uint16_t
calc_crc_16_ccitt(const uint8_t *src, size_t nbytes, uint16_t crc)