Skip to content

Commit da557a5

Browse files
committed
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.
1 parent 68631fc commit da557a5

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F

1 file changed

+1
-1
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/mbed_crc_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bool hal_crc_is_supported(const crc_mbed_config_t* config)
2929
return false;
3030
}
3131

32-
if ((config->width != 32) || (config->width != 16)) {
32+
if ((config->width != 32) && (config->width != 16)) {
3333
return false;
3434
}
3535

0 commit comments

Comments
 (0)