From a27d30aa518361830d715f5693c9cdc972fff459 Mon Sep 17 00:00:00 2001 From: outely <834843362@qq.com> Date: Wed, 8 Aug 2018 15:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=BC=80=E5=90=AFEF=5FENV=5FAUTO=5FUPDATE=E5=90=8E?= =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E9=87=8D=E5=90=AF=E9=83=BD=E4=BC=9A=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0env=E7=9A=84BUG=20Signed-off-by:=20o?= =?UTF-8?q?utely=20<834843362@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- easyflash/src/ef_env.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/easyflash/src/ef_env.c b/easyflash/src/ef_env.c index a0e0b68..389070c 100644 --- a/easyflash/src/ef_env.c +++ b/easyflash/src/ef_env.c @@ -887,6 +887,12 @@ static EfErrCode env_auto_update(void) /* lock the ENV cache */ ef_port_env_lock(); +#ifdef EF_ENV_AUTO_UPDATE + /* read ENV version number from flashcurrent*/ + ef_port_read(get_env_system_addr() + ENV_PARAM_INDEX_VER_NUM * 4, + &env_cache[ENV_PARAM_INDEX_VER_NUM] , 4); +#endif + /* check version number */ if (env_cache[ENV_PARAM_INDEX_VER_NUM] != EF_ENV_VER_NUM) { env_cache_changed = true;