解决冲突
This commit is contained in:
commit
dcca71d4d5
@ -268,13 +268,14 @@ int battery_get_percent(){
|
||||
return batt_percent;
|
||||
}
|
||||
//AT+BAT_CALIBRTATION
|
||||
int battery_calibration(){
|
||||
int battery_calibration(int calibration_value){
|
||||
bk_err_t ret = prvStartBatteryAdcOneTime();
|
||||
|
||||
if (ret == BK_OK)
|
||||
{
|
||||
bk_printf("BAT_CALIBRTATION calibration_value: %d \r\n", calibration_value);
|
||||
ret = 1;
|
||||
bat_offset = 3980-vol;
|
||||
bat_offset = calibration_value-vol;
|
||||
|
||||
bk_config_write("bat_offset", (void *)&bat_offset, 4);
|
||||
bk_config_sync_flash_safely();
|
||||
|
@ -25,7 +25,7 @@ void init_bat_timer();
|
||||
void poweron_voice();
|
||||
void poweroff_voice();
|
||||
|
||||
int battery_calibration();
|
||||
int battery_calibration(int calibration_value);
|
||||
/**
|
||||
* 获取电量百分百
|
||||
*/
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user