Turned off debug options in previous patch since they're only of use for testing/debugging.
This commit is contained in:
parent
37af65e44e
commit
28ac03478b
@ -87,7 +87,7 @@ static struct poweralg_config_type debug_config = {0};
|
||||
#define CHARGE_FAST 2
|
||||
|
||||
#define BATTERY_ID_UNKNOWN 0
|
||||
#define HTC_BATTERY_DS2746_DEBUG_ENABLE 1
|
||||
#define HTC_BATTERY_DS2746_DEBUG_ENABLE 0
|
||||
|
||||
/* DS2746 I2C BUS*/
|
||||
#define DS2746_I2C_BUS_ID 0
|
||||
|
@ -52,7 +52,7 @@ build flags
|
||||
|
||||
========================================================================================*/
|
||||
|
||||
#define HTC_ENABLE_POWER_DEBUG 1
|
||||
#define HTC_ENABLE_POWER_DEBUG 0
|
||||
#define HTC_ENABLE_DUMMY_BATTERY 0
|
||||
|
||||
/*========================================================================================
|
||||
@ -661,8 +661,10 @@ static BOOL __battery_param_udpate(struct battery_type *battery)
|
||||
battery->discharge_mA = (battery->discharge_adc * discharge_adc_to_mv_coef / discharge_adc_to_mv_resl);
|
||||
battery->charge_counter_mAh = (battery->charge_counter_adc * acr_adc_to_mv_coef / acr_adc_to_mv_resl) - charge_counter_zero_base_mAh;
|
||||
battery->current_mA = battery->current_mA - battery->discharge_mA;
|
||||
#if HTC_ENABLE_POWER_DEBUG
|
||||
printk(DRIVER_ZONE " battery.id_adc pre clip: %d\n", battery->id_adc);
|
||||
printk(DRIVER_ZONE " battery.temp_adc pre clip: %d\n", battery->temp_adc);
|
||||
#endif
|
||||
/* prevent from adc out of range*/
|
||||
if (battery->id_adc >= id_adc_resl) {
|
||||
battery->id_adc = id_adc_resl - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user