diff options
author | myfluxi <linflux@arcor.de> | 2015-10-25 16:11:41 +0100 |
---|---|---|
committer | myfluxi <linflux@arcor.de> | 2015-10-25 16:15:00 +0100 |
commit | c55ca2dcdca2d27b0103be820fdf745bb152844f (patch) | |
tree | 07359f14c0e05b19a89ba839ed63c59f17d4b78d | |
parent | 4b98704a97a3504f3385b9e804e4a7e4cc6bb8c1 (diff) | |
download | system_core-c55ca2dcdca2d27b0103be820fdf745bb152844f.zip system_core-c55ca2dcdca2d27b0103be820fdf745bb152844f.tar.gz system_core-c55ca2dcdca2d27b0103be820fdf745bb152844f.tar.bz2 |
healthd: charger: Increase unplugged shutdown time to 5s
1 second is a too short delay for some chargers such as
hammerhead's. Increasing it a bit fixes off-mode charge.
Change-Id: Ibcd2cf68b4f56fcfbcbf8a25ee4e18d1eab73037
-rw-r--r-- | healthd/healthd_mode_charger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp index 355c638..c0db457 100644 --- a/healthd/healthd_mode_charger.cpp +++ b/healthd/healthd_mode_charger.cpp @@ -65,7 +65,7 @@ char *locale; #define BATTERY_UNKNOWN_TIME (2 * MSEC_PER_SEC) #define POWER_ON_KEY_TIME (2 * MSEC_PER_SEC) -#define UNPLUGGED_SHUTDOWN_TIME (1 * MSEC_PER_SEC) +#define UNPLUGGED_SHUTDOWN_TIME (5 * MSEC_PER_SEC) #define BATTERY_FULL_THRESH 95 |