Commit 628d2fd3 authored by AleX Pelosi's avatar AleX Pelosi
Browse files

google_battery: change the disconnect condition



A device is really disconnected (and google_battery needs to
generate the charging statistics) only when it see buck_en=0
in the charging flags and when charging state is DISCONNECTED
or UNKNOWN.

Bug: 203005295
Signed-off-by: default avatarAleX Pelosi <apelosi@google.com>
Change-Id: I73c07f11a74a15f5d60730d624fd4e7866cedbe5
parent 58e1b2ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment