diff --git a/flight/modules/FirmwareIAP/firmwareiap.c b/flight/modules/FirmwareIAP/firmwareiap.c index 8c425f699..e1406daec 100644 --- a/flight/modules/FirmwareIAP/firmwareiap.c +++ b/flight/modules/FirmwareIAP/firmwareiap.c @@ -100,6 +100,7 @@ int32_t FirmwareIAPInitialize() PIOS_BL_HELPER_FLASH_Read_Description(data.Description, FIRMWAREIAPOBJ_DESCRIPTION_NUMELEM); PIOS_SYS_SerialNumberGetBinary(data.CPUSerial); data.BoardRevision = bdinfo->board_rev; + data.BootloaderRevision = bdinfo->bl_rev; data.ArmReset = 0; data.crc = 0; FirmwareIAPObjSet(&data); @@ -147,6 +148,7 @@ static void FirmwareIAPCallback(UAVObjEvent *ev) PIOS_BL_HELPER_FLASH_Read_Description(data.Description, FIRMWAREIAPOBJ_DESCRIPTION_NUMELEM); PIOS_SYS_SerialNumberGetBinary(data.CPUSerial); data.BoardRevision = bdinfo->board_rev; + data.BootloaderRevision = bdinfo->bl_rev; data.crc = PIOS_BL_HELPER_CRC_Memory_Calc(); FirmwareIAPObjSet(&data); } diff --git a/shared/uavobjectdefinition/firmwareiapobj.xml b/shared/uavobjectdefinition/firmwareiapobj.xml index f83c8aa67..9de8abd3e 100644 --- a/shared/uavobjectdefinition/firmwareiapobj.xml +++ b/shared/uavobjectdefinition/firmwareiapobj.xml @@ -6,6 +6,7 @@ +