修复电池切换后不保存问题
This commit is contained in:
		
							parent
							
								
									ffb0d6be0d
								
							
						
					
					
						commit
						c23b991ecc
					
				| 
						 | 
				
			
			@ -339,16 +339,14 @@ void Option_play_Selection_Key(lv_obj_t* obj, uint32_t key)
 | 
			
		|||
                 printf(" ================================== switch sd card.\n");
 | 
			
		||||
                ProfileSelected = 1;
 | 
			
		||||
                Ux_SendEvent(0, NVTEVT_SYSTEM_MODE, 1, PRIMARY_MODE_PLAYBACK);
 | 
			
		||||
                int SelectedHandle = System_Get_DCF_Handle();
 | 
			
		||||
    printf("[Option_play_Selection_Key][*x] select handle: %d.\n", SelectedHandle);
 | 
			
		||||
                
 | 
			
		||||
            } 
 | 
			
		||||
            else if (0 == ProfileFocused && ProfileSelected == 1)
 | 
			
		||||
            {
 | 
			
		||||
                 printf(" ================================== switch emmc.\n");
 | 
			
		||||
                ProfileSelected = 0;
 | 
			
		||||
                Ux_SendEvent(0, NVTEVT_SYSTEM_MODE, 1, PRIMARY_MODE_PLAYBACK);
 | 
			
		||||
                int SelectedHandle = System_Get_DCF_Handle();
 | 
			
		||||
    printf("[Option_play_Selection_Key][*x] select handle: %d.\n", SelectedHandle);
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
            ProfileFocused = 0;
 | 
			
		||||
            hidde_Selection_page();
 | 
			
		||||
| 
						 | 
				
			
			@ -1286,6 +1284,7 @@ static void set_indev_keypad_group(lv_obj_t* obj)
 | 
			
		|||
 | 
			
		||||
static void UIFlowPlay_ScrOpen(lv_obj_t* obj)
 | 
			
		||||
{
 | 
			
		||||
    
 | 
			
		||||
    DBG_IND("UIFlowPlay_ScrOpen\r\n");
 | 
			
		||||
    int SelectedHandle = System_Get_DCF_Handle();
 | 
			
		||||
    printf("[UIFlowPlay_ScrOpen][*x] select handle: %d.\n", SelectedHandle);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -418,7 +418,11 @@ UINT32 sf_battery_adc_value_get_once(void)
 | 
			
		|||
		}
 | 
			
		||||
		else
 | 
			
		||||
		{	first_init--;
 | 
			
		||||
			puiPara->BatteryType = SF_BATT_ALKALINE;
 | 
			
		||||
			if (puiPara->BatteryType == SF_BATT_LI_PACK)
 | 
			
		||||
			{
 | 
			
		||||
				puiPara->BatteryType = SF_BATT_ALKALINE;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			@ -969,7 +973,11 @@ void sf_battery_level_polling(void)
 | 
			
		|||
        }
 | 
			
		||||
    }
 | 
			
		||||
	else{
 | 
			
		||||
		puiPara->BatteryType = SF_BATT_ALKALINE;
 | 
			
		||||
		if(puiPara->BatteryType == SF_BATT_LI_PACK)
 | 
			
		||||
		{
 | 
			
		||||
			puiPara->BatteryType = SF_BATT_ALKALINE;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	//ret = sf_check_low_battery();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user