From 6b5ce6a7f2befb533906329813b9ea670734ab6b Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 11 Feb 2015 11:53:09 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEFlash=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=85=81=E8=AE=B8value=E4=B8=AD?= =?UTF-8?q?=E5=B8=A6'=3D'=E5=8F=B7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- flash/inc/flash.h | 2 +- flash/src/flash_env.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flash/inc/flash.h b/flash/inc/flash.h index 4f87f13..a3fbce9 100644 --- a/flash/inc/flash.h +++ b/flash/inc/flash.h @@ -28,7 +28,7 @@ if (!(EXPR)) \ while (1); \ } /* EasyFlash software version number */ -#define FLASH_SW_VERSION "1.01.28" +#define FLASH_SW_VERSION "1.02.11" typedef struct _flash_env{ char *key; diff --git a/flash/src/flash_env.c b/flash/src/flash_env.c index e4f325f..d2b377d 100644 --- a/flash/src/flash_env.c +++ b/flash/src/flash_env.c @@ -309,8 +309,8 @@ static FlashErrCode create_env(const char *key, const char *value) { return FLASH_ENV_NAME_ERR; } - if (strstr(key, "=") || strstr(value, "=")) { - FLASH_INFO("Flash environment variables name or value can't contain '='.\n"); + if (strstr(key, "=")) { + FLASH_INFO("Flash environment variables name can't contain '='.\n"); return FLASH_ENV_NAME_ERR; }