Обновление
This commit is contained in:
parent
12a2fa6718
commit
b9fd39b762
|
|
@ -147,6 +147,8 @@ void LoadFromStorageToStatusData(tDeviceStorage *env, ecu_identification_t *ecu)
|
|||
if (osMutexAcquire(env->dumpObserver.accessDumper, 1000) == osOK) {
|
||||
memcpy(ecu, &env->dataParam->device.identification, sizeof(ecu_identification_t));
|
||||
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) {
|
||||
memcpy(&env->dataParam->device.identification, ecu, sizeof(ecu_identification_t));
|
||||
osMutexRelease(env->dumpObserver.accessDumper);
|
||||
} else {
|
||||
LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error SaveToStorageFromStatusData");
|
||||
}
|
||||
|
||||
DeviceStorageParam_DelayedDump(env);
|
||||
|
|
|
|||
Loading…
Reference in New Issue