K64F CRC driver: hal_crc_is_supported() - fix condition which validates CRC width

It looks like the intention was to return false when CRC width is different than: {16, 32} bits.
pull/6831/head
Przemyslaw Stekiel 2018-06-07 14:55:23 +02:00
parent 68631fcaa9
commit da557a58a6
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ bool hal_crc_is_supported(const crc_mbed_config_t* config)
return false;
}
if ((config->width != 32) || (config->width != 16)) {
if ((config->width != 32) && (config->width != 16)) {
return false;
}