diff --git a/easyflash/inc/easyflash.h b/easyflash/inc/easyflash.h index 8bb3115..74f0933 100644 --- a/easyflash/inc/easyflash.h +++ b/easyflash/inc/easyflash.h @@ -76,8 +76,8 @@ if (!(EXPR)) \ #endif /* EasyFlash software version number */ -#define EF_SW_VERSION "3.2.2" -#define EF_SW_VERSION_NUM 0x30202 +#define EF_SW_VERSION "3.2.3" +#define EF_SW_VERSION_NUM 0x30203 typedef struct _ef_env { char *key; diff --git a/easyflash/src/ef_env_wl.c b/easyflash/src/ef_env_wl.c index beebc22..3516fa3 100644 --- a/easyflash/src/ef_env_wl.c +++ b/easyflash/src/ef_env_wl.c @@ -1050,7 +1050,7 @@ static EfErrCode env_auto_update(void) ef_port_env_lock(); /* read ENV version number from flash*/ - ef_port_read(get_env_system_addr() + ENV_PARAM_INDEX_VER_NUM * 4, + ef_port_read(get_cur_using_data_addr() + ENV_PARAM_INDEX_VER_NUM * 4, &env_cache[ENV_PARAM_INDEX_VER_NUM] , 4); /* check version number */