HAL CRC: Fix inverted CRC mode selection

pull/6708/head
Steven Cartmell 2018-05-09 16:50:32 +01:00
parent eb202a29c1
commit d53ffb7022
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ private:
{
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
crc_mbed_config_t config;