增加倒计时到0后闪灯

This commit is contained in:
xiehongyan 2024-01-09 13:46:06 +08:00
parent 916b6d5985
commit 204f9ea7b0
3 changed files with 8 additions and 1 deletions

View File

@ -543,6 +543,7 @@ static void UIFlowMenuCommonConfirm_MessageBox_ValueChanged(lv_obj_t* obj, uint3
} else if (gBKGEvt == NVTEVT_BKW_ENTER_WORK_MODE)
{
OpenClosingScreen(DISPLAY_FINAL_DO_NOT_SHOW_POWER_OFF);
sf_set_pir_statu_flag(1);
// BKG_PostEvent(gBKGEvt);
// UIFlowMenuCommonConfirm_CloseScr();
} else if (gBKGEvt) {

View File

@ -1739,6 +1739,7 @@ static void task_update_icons_timer_cb(lv_task_t* task)
else
{
OpenClosingScreen(DISPLAY_FINAL_DO_NOT_SHOW_POWER_OFF);
sf_set_pir_statu_flag(1);
}
}
return;
@ -2129,6 +2130,7 @@ void UIFlowPhtot_KeyLongPress(lv_obj_t* obj, uint32_t key)
{
// Ux_PostEvent(NVTEVT_SYSTEM_SHUTDOWN, 1, APP_POWER_OFF_APO);
OpenClosingScreen(DISPLAY_FINAL_DO_NOT_SHOW_POWER_OFF);
sf_set_pir_statu_flag(1);
KeyLeftPressingTimeMs = 0;
}
break;

View File

@ -7,6 +7,7 @@
#include "sf_sd_common.h"
#include "sf_commu_mcu_reg.h"
#include "sf_common.h"
extern BOOL sf_is_usb_flag(void);
/**************************************************************
* static variables
@ -42,7 +43,10 @@ static void task_msgbox_timer_cb(lv_task_t* task)
UINT16 autoOffTime = sf_get_auto_off_time();
const lv_plugin_string_t* string = lv_plugin_get_string(msgID);
if(sf_is_usb_flag())
{
return;
}
if (0 == autoClose || autoOffTime <= 10)
{
printf("[task_msgbox_timer_cb][*x]auto close\n");