mirror of https://github.com/ARMmbed/mbed-os.git
STM CRC driver: hal_crc_compute_partial() - validate input paramaters.
parent
511f3703c3
commit
68631fcaa9
|
@ -55,7 +55,9 @@ void hal_crc_compute_partial_start(const crc_mbed_config_t* config)
|
|||
|
||||
void hal_crc_compute_partial(const uint8_t *data, const size_t size)
|
||||
{
|
||||
HAL_CRC_Accumulate(¤t_state, (uint32_t *)data, size);
|
||||
if (data && size) {
|
||||
HAL_CRC_Accumulate(¤t_state, (uint32_t *)data, size);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t hal_crc_get_result(void)
|
||||
|
|
Loading…
Reference in New Issue