Fix mbed_crc_ctor is missing in some MbedCRC constructor

This error leaves MbedCRC/_mode uninitialized and may cause mbed-os-tests-mbed_drivers-crc/
Test SD CRC polynomials failed.
pull/7081/head
ccli8 2018-05-31 14:00:43 +08:00
parent 52cb119571
commit f51d036ecd
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ MbedCRC<POLY_16BIT_CCITT, 16>::MbedCRC(uint32_t initial_xor, uint32_t final_xor,
_initial_value(initial_xor), _final_xor(final_xor), _reflect_data(reflect_data), _reflect_remainder(reflect_remainder),
_crc_table((uint32_t *)Table_CRC_16bit_CCITT)
{
mbed_crc_ctor();
}
template<>