From 12a2fa671849d82bacb691b4f0235ba68285f417 Mon Sep 17 00:00:00 2001 From: cfif Date: Tue, 21 Apr 2026 11:15:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DeviceStorage.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DeviceStorage.c b/DeviceStorage.c index 23b350d..65102e5 100644 --- a/DeviceStorage.c +++ b/DeviceStorage.c @@ -10,6 +10,7 @@ #include "SystemDelayInterface.h" #include "HVAC_preDefine.h" #include "StorageOnFlash.h" +#include "FirmwareMetadataSection.h" #define LOGGER env->logger #define LOG_SIGN "Storage" @@ -26,6 +27,15 @@ bool DeviceStorage_LoadParam(tDeviceStorage *env) { bool isLoad = VarsTabDumpObserverParam_Load(&env->dumpObserver); + tFirmwareMetaMap *firmwareMetaMap_Boot = (tFirmwareMetaMap *) ADR_META_BOOT; + tFirmwareMetaMap *firmwareMetaMap_Main = (tFirmwareMetaMap *) ADR_META_MAIN; + + memcpy(&env->dataParam->device.identification.Internal_SW_Version, &firmwareMetaMap_Main->internal_SW_Version, + sizeof(tInternal_SW_Version)); + + memcpy(&env->dataParam->device.identification.Boot_SW_Fingerprint, &firmwareMetaMap_Boot->fingerprint, sizeof(tFingerprintDev)); + memcpy(&env->dataParam->device.identification.Application_SW_Fingerprint, &firmwareMetaMap_Main->fingerprint, sizeof(tFingerprintDev)); + if (isLoad) { if (env->dataParam->version_param == DEVICE_DATA_VERSION_PARAM) { LoggerInfoStatic(LOGGER, LOG_SIGN, "Parameters loaded successfully");