crc8: fix const correctness
Declares the array with constant data const. Tested with tests/unit/lib/crc. Signed-off-by: Alexander Polleti <metapsychologe@yahoo.de>
This commit is contained in:
parent
316f8604b7
commit
aec8971bfd
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <crc8.h>
|
||||
|
||||
static u8_t crc8_ccitt_small_table[16] = {
|
||||
static const u8_t crc8_ccitt_small_table[16] = {
|
||||
0x00, 0x07, 0x0e, 0x09, 0x1c, 0x1b, 0x12, 0x15,
|
||||
0x38, 0x3f, 0x36, 0x31, 0x24, 0x23, 0x2a, 0x2d
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue