1.优化锂电池盒插入
This commit is contained in:
parent
054b0e9aac
commit
e73791c1c1
|
@ -911,6 +911,13 @@ void sf_battery_level_polling(void)
|
|||
|
||||
sf_battery_level_update();
|
||||
sf_temper_update();
|
||||
if(LiPolymerVoltageVal)
|
||||
{
|
||||
if(SF_BATT_LI != puiPara->BatteryType)
|
||||
{
|
||||
puiPara->BatteryType = SF_BATT_LI;
|
||||
}
|
||||
}
|
||||
//ret = sf_check_low_battery();
|
||||
|
||||
if(puiPara->BatteryLogSwitch)
|
||||
|
@ -1338,18 +1345,12 @@ 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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user