格式化菜单优化
This commit is contained in:
parent
e0d2aea246
commit
ba876371b3
|
@ -372,13 +372,14 @@ static void LV_MenuCommonOption_UpdateContent(TM_MENU *pMenu)
|
|||
lv_obj_set_pos(image_option1_scr_uiflowmenucommonoption, 288, 0);
|
||||
ui_hidden = false;
|
||||
}
|
||||
else if (i == 1)
|
||||
else if (i == 1 && (1 == SelOption))
|
||||
{
|
||||
lv_plugin_menu_select_item(menu_option, 0);
|
||||
s_SelOption = 0;
|
||||
SelOption = 0;
|
||||
lv_plugin_menu_set_item_state(menu_option, 1, LV_PLUGIN_MENU_ITEM_STATE_DISABLED);
|
||||
ui_hidden = true;
|
||||
SysSetFlag(pItem->SysFlag,0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -945,6 +946,7 @@ static void LV_MenuOption_OnOpen(lv_obj_t* obj, TM_MENU *data)
|
|||
UINT32 cardStatus = System_GetState(SYS_STATE_CARD);
|
||||
if (cardStatus == CARD_REMOVED)
|
||||
{
|
||||
SelOption = 0;
|
||||
lv_plugin_menu_set_item_state(menu_option, 1, LV_PLUGIN_MENU_ITEM_STATE_DISABLED);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -258,7 +258,7 @@ void sf_mode_detect(void)
|
|||
|
||||
time=0;
|
||||
|
||||
printf("[*x] get pir statu : %d ...\n", sf_get_pir_statu_flag());
|
||||
//printf("[*x] get pir statu : %d ...\n", sf_get_pir_statu_flag());
|
||||
if((sf_get_pir_statu_flag()) && (!gpio_getPin(GPIO_KEY_TEST)))
|
||||
{
|
||||
timeBak++;
|
||||
|
@ -284,7 +284,7 @@ void sf_mode_detect(void)
|
|||
}
|
||||
else if((sf_get_pir_statu_flag()) && (CMD_FORMAT_SD_STA != sf_get_card_statu()))
|
||||
{
|
||||
printf("[sf_mode_detect][*x] empezar going to pir................................\n");
|
||||
//printf("[sf_mode_detect][*x] empezar going to pir................................\n");
|
||||
pwroffcnt++;
|
||||
//printf("[%s:%d]pwroffcnt=%d\n",__FUNCTION__,__LINE__,pwroffcnt);
|
||||
//sf_enter_auto_mode_count_down_show(4 - pwroffcnt);
|
||||
|
|
Loading…
Reference in New Issue
Block a user