Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyongzhong0 committed Mar 12, 2021
1 parent f87d846 commit 00b2d90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/crc16.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#ifdef CRCLIB_USING_CRC16

#if (!defined(CRC16_USING_CONST_TABLE) || (CRC16_POLY != 0xA001) || (CRC16_POLY != 0x8408))
#if (!defined(CRC16_USING_CONST_TABLE) || ((CRC16_POLY != 0xA001) && (CRC16_POLY != 0x8408)))
/*
* @brief cyclic initialize crc table
* @param none
Expand Down
2 changes: 1 addition & 1 deletion inc/crc32.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#ifdef CRCLIB_USING_CRC32

#if (!defined(CRC32_USING_CONST_TABLE) || (CRC32_POLY != 0xEDB88320) || (CRC32_POLY != 0x82F63B78))
#if (!defined(CRC32_USING_CONST_TABLE) || ((CRC32_POLY != 0xEDB88320) && (CRC32_POLY != 0x82F63B78)))
/*
* @brief cyclic initialize crc table
* @param none
Expand Down
2 changes: 1 addition & 1 deletion inc/crc8.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#ifdef CRCLIB_USING_CRC8

#if (!defined(CRC8_USING_CONST_TABLE) || (CRC8_POLY != 0x8C) || (CRC8_POLY != 0xD9))
#if (!defined(CRC8_USING_CONST_TABLE) || ((CRC8_POLY != 0x8C) && (CRC8_POLY != 0xD9)))
/*
* @brief cyclic initialize crc table
* @param none
Expand Down

0 comments on commit 00b2d90

Please sign in to comment.