1.电池盒切换类型
This commit is contained in:
		
							parent
							
								
									95e8020192
								
							
						
					
					
						commit
						75bff8a174
					
				| 
						 | 
				
			
			@ -1337,14 +1337,28 @@ UINT8 sf_battery_value_get(UINT8 nightMode)
 | 
			
		|||
*************************************************/
 | 
			
		||||
UINT8 sf_battery_type_get(void)
 | 
			
		||||
{
 | 
			
		||||
    UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
 | 
			
		||||
 | 
			
		||||
    if(IsPowerDcIn)
 | 
			
		||||
    {
 | 
			
		||||
        return SF_POWER_TYPE_DC;
 | 
			
		||||
    }
 | 
			
		||||
    else if(LiPolymerVoltageVal)
 | 
			
		||||
    {
 | 
			
		||||
        if(SF_BATT_LI != puiPara->BatteryType)
 | 
			
		||||
        {
 | 
			
		||||
            puiPara->BatteryType = SF_BATT_LI;
 | 
			
		||||
        }
 | 
			
		||||
        return SF_POWER_TYPE_LI_POLYER;
 | 
			
		||||
    }
 | 
			
		||||
    else if(BatVoltageVal)
 | 
			
		||||
    {
 | 
			
		||||
        return SF_POWER_TYPE_AA;
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        return SF_POWER_TYPE_DC;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*************************************************
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user