Skip to content

Commit d53ffb7

Browse files
author
Steven Cartmell
committed
HAL CRC: Fix inverted CRC mode selection
1 parent eb202a2 commit d53ffb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/MbedCRC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class MbedCRC
436436
{
437437
MBED_STATIC_ASSERT(width <= 32, "Max 32-bit CRC supported");
438438

439-
_mode = (_crc_table == NULL) ? TABLE : BITWISE;
439+
_mode = (_crc_table != NULL) ? TABLE : BITWISE;
440440

441441
#ifdef DEVICE_CRC
442442
crc_mbed_config_t config;

0 commit comments

Comments
 (0)