【修复】磨损平衡模式下,开启 ENV 自动升级功能会出现编译出错的问题。

Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
armink 2018-10-12 08:57:21 +08:00
parent fe08817b72
commit a79032df6c
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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 */