From: hcj <1224667075@qq.com> Date: Fri, 20 Dec 2024 08:54:39 +0000 (+0800) Subject: 修复写功耗文件死机问题 X-Git-Tag: v1.3.113-repair_tp~18^2~33 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=4656fc2088bad09d86644a59c459512633968a1b;p=mirrors%2FFD230.git 修复写功耗文件死机问题 --- diff --git a/code/sdk/drivers/peripheral/utils/custom_save_runtime.c b/code/sdk/drivers/peripheral/utils/custom_save_runtime.c index 094632a51..89f564627 100644 --- a/code/sdk/drivers/peripheral/utils/custom_save_runtime.c +++ b/code/sdk/drivers/peripheral/utils/custom_save_runtime.c @@ -167,6 +167,7 @@ static void custom_save_runtime_log_service_task(void const *arg) create_runtime_log_path(save_path,128,file_count); } + fclose(fp); } else { @@ -175,7 +176,7 @@ static void custom_save_runtime_log_service_task(void const *arg) create_runtime_log_path(save_path,128,file_count); } - fclose(fp); + } }