From 8633eba5e769e8bd5ab99fa084e5086a09704af2 Mon Sep 17 00:00:00 2001 From: xiaojiazhu Date: Wed, 29 Nov 2023 17:47:59 +0800 Subject: [PATCH] Fixed bug number 10227. --- .../UIFlowLVGL/UIFlowWrnMsg/UIFlowWrnMsgEventCallback.c | 7 +++++-- 1 file changed, 5 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 f2fb48f2c..504fb605b 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 @@ -121,13 +121,16 @@ void UIFlowWrnMsgAPI_Open_StringID(lv_plugin_res_id id, uint16_t auto_close_time //#NT#Support IVOT_N12144_CO-148_A DBG_DUMP("\r\nUIFlowWrnMsgAPI_Open_StringID msgID:%d",msgID); { + #define BUF_LENGTH 256 + char buf[BUF_LENGTH] = {0}; const lv_plugin_string_t* tmpstr1 = lv_plugin_get_string(msgID); if(LV_PLUGIN_STRING_ID_STRING_ENTER_WORK == msgID) { - #define BUF_LENGTH 256 - char buf[BUF_LENGTH] = {0}; snprintf(buf, BUF_LENGTH, "%s\n\n(%ds)\r\n", tmpstr1->ptr, autoClose/1000); lv_label_set_text_fmt(label_msg_scr_uiflowwrnmsg, "%s", buf); + } else if (LV_PLUGIN_STRING_ID_STRING_UPGRADING == msgID) + { + lv_label_set_text_fmt(label_msg_scr_uiflowwrnmsg, "Upgrading...\nCamera will automatically restart after upgrade complete"); } else {