summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2017-01-17 20:00:08 -0800
committerVic Wei <vwei@codeaurora.org>2017-01-23 16:21:02 -0800
commit7cbc0c21593a58a80a24de40752007f97576804e (patch)
treec7fd0b740b9732ae3a8d690075ffcaf0047efde5 /tools/perf/scripts/python/export-to-postgresql.py
parent1f1d94408446043289fe0126897f98af2dce0ecd (diff)
smb-lib: report discharging when charger is absent
Currently, the code reports whatever is in the BATTERY_CHARGING_STATUS_1 register for the battery status. We have seen that the register continues to report FAST charging even when the chg_ok pin could be low or dc path is in collapsed state (collapsed state is treated as dc not online). This unexpected report of charging while it is not really charging breaks certain features. Fix it by checking for usb_online and dc_online. But make sure that if the battery is full it continues to report so. Change-Id: I732c916b4f63f9ff0fd8d9c77ce5253c309698a4 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions