Обновление

This commit is contained in:
cfif 2026-04-28 10:38:59 +03:00
parent 12a2fa6718
commit b9fd39b762
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,8 @@ void LoadFromStorageToStatusData(tDeviceStorage *env, ecu_identification_t *ecu)
if (osMutexAcquire(env->dumpObserver.accessDumper, 1000) == osOK) { if (osMutexAcquire(env->dumpObserver.accessDumper, 1000) == osOK) {
memcpy(ecu, &env->dataParam->device.identification, sizeof(ecu_identification_t)); memcpy(ecu, &env->dataParam->device.identification, sizeof(ecu_identification_t));
osMutexRelease(env->dumpObserver.accessDumper); osMutexRelease(env->dumpObserver.accessDumper);
} else {
LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error LoadFromStorageToStatusData");
} }
} }
@ -155,6 +157,8 @@ void SaveToStorageFromStatusData(tDeviceStorage *env, ecu_identification_t *ecu)
if (osMutexAcquire(env->dumpObserver.accessDumper, 1000) == osOK) { if (osMutexAcquire(env->dumpObserver.accessDumper, 1000) == osOK) {
memcpy(&env->dataParam->device.identification, ecu, sizeof(ecu_identification_t)); memcpy(&env->dataParam->device.identification, ecu, sizeof(ecu_identification_t));
osMutexRelease(env->dumpObserver.accessDumper); osMutexRelease(env->dumpObserver.accessDumper);
} else {
LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error SaveToStorageFromStatusData");
} }
DeviceStorageParam_DelayedDump(env); DeviceStorageParam_DelayedDump(env);