From 2ecffd78952bded1e8fc0a512f4b8fc1da216a11 Mon Sep 17 00:00:00 2001 From: payton Date: Thu, 7 Dec 2023 16:18:00 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0log=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/cardv/SrcCode/System/SysMain.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/code/application/source/cardv/SrcCode/System/SysMain.c b/code/application/source/cardv/SrcCode/System/SysMain.c index 6a55c0ea1..82d051e3a 100644 --- a/code/application/source/cardv/SrcCode/System/SysMain.c +++ b/code/application/source/cardv/SrcCode/System/SysMain.c @@ -27,7 +27,9 @@ #include #include #endif - +#if (LOGFILE_FUNC==ENABLE) +#include "LogFile.h" +#endif extern void System_BootStart(void); extern void System_BootEnd(void); extern void System_ShutDownStart(void); @@ -765,6 +767,14 @@ exit: stMessageBuf.arg1 = paramArray[0]; stMessageBuf.cmdId = CMD_POWEROFF; sf_com_message_send_to_app(&stMessageBuf); + #if (LOGFILE_FUNC==ENABLE) + UIMenuStoreInfo *puiPara = sf_ui_para_get(); + if (puiPara->DebugMode) + { + DBG_DUMP("LogFile_Close ...\n"); + LogFile_Close(); + } + #endif #else sf_mcu_reg_set(SF_MCU_POWEROFF,paramArray[0]);