From 827482ef7e6618f3276088564177c75ee405bd94 Mon Sep 17 00:00:00 2001 From: chengjinsong2 Date: Thu, 5 Jan 2023 01:10:40 -0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3L0=E6=8E=A5=E5=8F=A3=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=88=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengjinsong2 --- services/param/liteos/param_service.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/param/liteos/param_service.c b/services/param/liteos/param_service.c index 1b3f6cb9..68cb1a77 100644 --- a/services/param/liteos/param_service.c +++ b/services/param/liteos/param_service.c @@ -133,8 +133,14 @@ static void ParamServiceTask(int *arg) void LiteParamService(void) { + static init = 0; + if (init) { + printf("LiteParamService has been init \n"); + return; + } + init = 1; EnableInitLog(INIT_INFO); - PARAM_LOGI("LiteParamService"); + printf("LiteParamService \n");; InitParamService(); // get persist param LoadPersistParams(); -- GitLab