mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
68631fcaa9
commit
da557a58a6
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue