Skip to content

Commit f51d036

Browse files
committed
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.
1 parent 52cb119 commit f51d036

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/MbedCRC.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ MbedCRC<POLY_16BIT_CCITT, 16>::MbedCRC(uint32_t initial_xor, uint32_t final_xor,
5353
_initial_value(initial_xor), _final_xor(final_xor), _reflect_data(reflect_data), _reflect_remainder(reflect_remainder),
5454
_crc_table((uint32_t *)Table_CRC_16bit_CCITT)
5555
{
56+
mbed_crc_ctor();
5657
}
5758

5859
template<>

0 commit comments

Comments
 (0)