diff --git a/services/param/liteos/param_service.c b/services/param/liteos/param_service.c index 1b3f6cb97ec3130f96c2706f29d56ad189dde285..68cb1a77bfa36595d27509590db153d82697fbd9 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();