mirror of
https://gitee.com/Armink/EasyFlash.git
synced 2024-12-02 04:08:53 +08:00
【修复】磨损平衡模式下,开启 ENV 自动升级功能会出现编译出错的问题。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
fe08817b72
commit
a79032df6c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user