diff --git a/DeviceStorage.c b/DeviceStorage.c index 65102e5..de02994 100644 --- a/DeviceStorage.c +++ b/DeviceStorage.c @@ -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);