mirror of https://github.com/ARMmbed/mbed-os.git
HAL CRC: Fix inverted CRC mode selection
parent
eb202a29c1
commit
d53ffb7022
|
@ -436,7 +436,7 @@ private:
|
||||||
{
|
{
|
||||||
MBED_STATIC_ASSERT(width <= 32, "Max 32-bit CRC supported");
|
MBED_STATIC_ASSERT(width <= 32, "Max 32-bit CRC supported");
|
||||||
|
|
||||||
_mode = (_crc_table == NULL) ? TABLE : BITWISE;
|
_mode = (_crc_table != NULL) ? TABLE : BITWISE;
|
||||||
|
|
||||||
#ifdef DEVICE_CRC
|
#ifdef DEVICE_CRC
|
||||||
crc_mbed_config_t config;
|
crc_mbed_config_t config;
|
||||||
|
|
Loading…
Reference in New Issue