From 15e8c63bbe4ed49f1b26aecc2cd82eb8a78200bb Mon Sep 17 00:00:00 2001 From: armink Date: Thu, 8 Dec 2016 10:19:13 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91?= =?UTF-8?q?=E5=9C=A8=E6=8E=89=E7=94=B5=E4=BF=9D=E6=8A=A4=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8=E9=83=A8=E5=88=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9C=AA=E6=81=A2=E5=A4=8D=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- easyflash/inc/easyflash.h | 2 +- easyflash/src/ef_env.c | 9 +++++++++ easyflash/src/ef_env_wl.c | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/easyflash/inc/easyflash.h b/easyflash/inc/easyflash.h index a02671c..1efdc93 100644 --- a/easyflash/inc/easyflash.h +++ b/easyflash/inc/easyflash.h @@ -67,7 +67,7 @@ if (!(EXPR)) \ while (1); \ } /* EasyFlash software version number */ -#define EF_SW_VERSION "2.11.24" +#define EF_SW_VERSION "2.12.08" typedef struct _ef_env{ char *key; diff --git a/easyflash/src/ef_env.c b/easyflash/src/ef_env.c index b1ce732..dbfc0c0 100644 --- a/easyflash/src/ef_env.c +++ b/easyflash/src/ef_env.c @@ -185,6 +185,15 @@ EfErrCode ef_env_set_default(void){ result = ef_save_env(); +#ifdef EF_ENV_USING_PFS_MODE + /* reset other PFS area's data */ + if (result == EF_NO_ERR) { + env_cache_changed = true; + result = ef_save_env(); + } +#endif + + return result; } diff --git a/easyflash/src/ef_env_wl.c b/easyflash/src/ef_env_wl.c index d02029c..512d5cb 100644 --- a/easyflash/src/ef_env_wl.c +++ b/easyflash/src/ef_env_wl.c @@ -189,6 +189,14 @@ EfErrCode ef_env_set_default(void){ result = ef_save_env(); +#ifdef EF_ENV_USING_PFS_MODE + /* reset other PFS area's data */ + if (result == EF_NO_ERR) { + env_cache_changed = true; + result = ef_save_env(); + } +#endif + return result; }