diff --git a/DeviceStorage.c b/DeviceStorage.c index f7cb306..b2d7c15 100644 --- a/DeviceStorage.c +++ b/DeviceStorage.c @@ -98,10 +98,10 @@ bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInte env->logger = logger; env->dataParam = (tDeviceDataNonVolatile *) dataReservedParamStore; - env->dataCalib = (void *) __itcm_start; + env->dataCalib = (void *) __itcm_start + 4; - DeviceStorage_InitCommon(env, storageParamInterface, nf_storage_param_size, - storageCalibInterface, nf_storage_calib_size); + DeviceStorage_InitCommon(env, storageCalibInterface, nf_storage_calib_size, + storageParamInterface, nf_storage_param_size); bool resultParam = DeviceStorage_LoadParam(env); bool resultCalib = DeviceStorage_LoadCalib(env);