HAL CRC: K64F: Set output width based on input width, not the polynomial

pull/6708/head
Steven Cartmell 2018-05-08 14:43:52 +01:00
parent 1da75e5e85
commit 738d92a79f
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ void hal_crc_compute_partial_start(const crc_mbed_config_t* config)
return;
}
width = ((config->polynomial & 0xFFFF0000U) != 0) ? kCrcBits32 : kCrcBits16;
width = (config->width == 32) ? kCrcBits32 : kCrcBits16;
final_xor = config->final_xor;
crc_config_t platform_config;