diff --git a/easyflash/inc/easyflash.h b/easyflash/inc/easyflash.h index bf2268e..b1cafec 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 "1.12.16" +#define EF_SW_VERSION "2.07.28" typedef struct _ef_env{ char *key; diff --git a/easyflash/src/ef_env.c b/easyflash/src/ef_env.c index 02678c5..568ad3d 100644 --- a/easyflash/src/ef_env.c +++ b/easyflash/src/ef_env.c @@ -188,10 +188,8 @@ EfErrCode ef_env_set_default(void){ */ static uint32_t get_env_system_addr(void) { #ifndef EF_ENV_USING_PFS_MODE - EF_ASSERT(env_start_addr); return env_start_addr; #else - EF_ASSERT(cur_load_area_addr); return cur_load_area_addr; #endif } @@ -307,8 +305,6 @@ static char *find_env(const char *key) { char *env_start, *env_end, *env, *found_env = NULL; size_t key_len = strlen(key), env_len; - EF_ASSERT(env_start_addr); - if (*key == NULL) { EF_INFO("Flash ENV name must be not empty!\n"); return NULL; diff --git a/easyflash/src/ef_env_wl.c b/easyflash/src/ef_env_wl.c index eb51800..c4821e4 100644 --- a/easyflash/src/ef_env_wl.c +++ b/easyflash/src/ef_env_wl.c @@ -192,7 +192,6 @@ EfErrCode ef_env_set_default(void){ * @return ENV start address in flash */ static uint32_t get_env_start_addr(void) { - EF_ASSERT(env_start_addr); return env_start_addr; } /**