1.修改battery测试log
This commit is contained in:
parent
9664782c2f
commit
c54e521de2
|
@ -895,7 +895,19 @@ void sf_battery_level_polling(void)
|
|||
LibatCnt++;
|
||||
}
|
||||
readBatCnt++;
|
||||
if(puiPara->BatteryLogSwitch)
|
||||
{
|
||||
printf("\nDC Adc:%d After Convert:(%d.%dV),Is Dc In=%s, TemperAdc:%d \n", sf_battery_convert_to_adc(24, 100, DcVoltageVal), DcVoltageVal / 10, DcVoltageVal % 10, IsPowerDcIn == 1? "Yes" : "No", TemperAdc);
|
||||
|
||||
if(LiPolymerVoltageVal)
|
||||
{
|
||||
printf("Li Battery Adc:%d After Convert:(%d.%dV)\n\n", sf_battery_convert_to_adc(24, 100, LiPolymerVoltageVal), LiPolymerVoltageVal / 10, LiPolymerVoltageVal % 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Other Battery Adc:%d After Convert:(%d.%dV)\n\n", sf_aa_battery_convert_to_adc(24, 100, BatVoltageVal),BatVoltageVal / 10, BatVoltageVal % 10);
|
||||
}
|
||||
}
|
||||
if(readBatCnt >= 10)
|
||||
{
|
||||
_DcVoltageVal = dcTemp / 10;
|
||||
|
|
Loading…
Reference in New Issue
Block a user