From f6397d91776a644583300826e84880b8eb18b762 Mon Sep 17 00:00:00 2001 From: armink Date: Thu, 5 Mar 2015 13:16:48 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=A1=AE=E5=9C=B0=E6=96=B9=EF=BC=8C=E5=B9=B6=E5=AE=8C?= =?UTF-8?q?=E5=96=84API=E8=AF=B4=E6=98=8E=E6=96=87=E6=A1=A3=E4=B8=AD?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E6=9C=89=E6=AD=A7=E4=B9=89=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- docs/zh/api.md | 4 ++-- flash/src/flash_env.c | 4 ++-- flash/src/flash_env_wl.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/zh/api.md b/docs/zh/api.md index 299b96f..e3dd052 100644 --- a/docs/zh/api.md +++ b/docs/zh/api.md @@ -77,8 +77,8 @@ FlashErrCode flash_set_env(const char *key, const char *value) FlashErrCode flash_save_env(void) ``` -#### 1.2.6 恢复环境变量 -将内存中的环境变量表恢复为默认值。 +#### 1.2.6 重置环境变量 +将内存中的环境变量表重置为默认值。 ```C FlashErrCode flash_env_set_default(void) diff --git a/flash/src/flash_env.c b/flash/src/flash_env.c index 6d6e2d5..5d1d96f 100644 --- a/flash/src/flash_env.c +++ b/flash/src/flash_env.c @@ -394,7 +394,7 @@ FlashErrCode flash_del_env(const char *key){ } /** - * Set an environment variable. If it value is NULL, delete it. + * Set an environment variable. If it value is empty, delete it. * If not find it in environment variables table, then create it. * * @param key environment variable name @@ -407,7 +407,7 @@ FlashErrCode flash_set_env(const char *key, const char *value) { FLASH_ASSERT(env_cache); - /* if value is null, delete it */ + /* if ENV value is empty, delete it */ if (*value == NULL) { result = flash_del_env(key); } else { diff --git a/flash/src/flash_env_wl.c b/flash/src/flash_env_wl.c index 93d84eb..ed39c66 100644 --- a/flash/src/flash_env_wl.c +++ b/flash/src/flash_env_wl.c @@ -427,7 +427,7 @@ FlashErrCode flash_del_env(const char *key){ } /** - * Set an environment variable. If it value is NULL, delete it. + * Set an environment variable. If it value is empty, delete it. * If not find it in environment variables table, then create it. * * @param key environment variable name @@ -440,7 +440,7 @@ FlashErrCode flash_set_env(const char *key, const char *value) { FLASH_ASSERT(env_cache); - /* if value is null, delete it */ + /* if ENV value is empty, delete it */ if (*value == NULL) { result = flash_del_env(key); } else {