From fd98f2785e174d2f9f439bbfb2c384088f100b7b Mon Sep 17 00:00:00 2001 From: xiehongyan Date: Tue, 9 Jan 2024 10:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=92=E8=AE=A1=E6=97=B6=E6=97=B6=E5=BA=8F?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UIFlowWrnMsg/UIFlowWrnMsgEventCallback.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowWrnMsg/UIFlowWrnMsgEventCallback.c b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowWrnMsg/UIFlowWrnMsgEventCallback.c index c4dc46803..a5cfca75f 100755 --- a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowWrnMsg/UIFlowWrnMsgEventCallback.c +++ b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowWrnMsg/UIFlowWrnMsgEventCallback.c @@ -51,8 +51,15 @@ static void task_msgbox_timer_cb(lv_task_t* task) msgbox_timer = NULL; if (msgbox) { - printf("msg box close delay 1000.\n"); - lv_msgbox_start_auto_close(msgbox, 1000); + if (0 != autoClose) + { + printf("msg box close delay 1000.\n"); + lv_msgbox_start_auto_close(msgbox, 1000); + } + else + { + lv_msgbox_start_auto_close(msgbox, 5000); + } } if (0 == autoClose) {