1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-593 Set firmware Crc at init

This commit is contained in:
Laurent Lalanne 2018-04-11 19:30:46 +02:00
parent 877177ab51
commit 4c83f0a844

View File

@ -104,7 +104,7 @@ int32_t FirmwareIAPInitialize()
}
data.BootloaderRevision = bdinfo->bl_rev;
data.ArmReset = 0;
data.crc = 0;
data.crc = PIOS_BL_HELPER_CRC_Memory_Calc();
FirmwareIAPObjSet(&data);
if (bdinfo->magic == PIOS_BOARD_INFO_BLOB_MAGIC) {
FirmwareIAPObjConnectCallback(&FirmwareIAPCallback);