提交 a79032df 编写于 作者: armink_ztl's avatar armink_ztl

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

Signed-off-by: armink_ztl's avatararmink <armink.ztl@gmail.com>
上级 fe08817b
......@@ -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;
......
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册