修复写功耗文件死机问题
authorhcj <1224667075@qq.com>
Fri, 20 Dec 2024 08:54:39 +0000 (16:54 +0800)
committerhcj <1224667075@qq.com>
Fri, 20 Dec 2024 08:54:39 +0000 (16:54 +0800)
code/sdk/drivers/peripheral/utils/custom_save_runtime.c

index 094632a..89f5646 100644 (file)
@@ -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);
+       
         
     }
 }