summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authormyfluxi <linflux@arcor.de>2015-10-25 16:11:41 +0100
committermyfluxi <linflux@arcor.de>2015-10-25 16:15:00 +0100
commitc55ca2dcdca2d27b0103be820fdf745bb152844f (patch)
tree07359f14c0e05b19a89ba839ed63c59f17d4b78d /healthd
parent4b98704a97a3504f3385b9e804e4a7e4cc6bb8c1 (diff)
downloadsystem_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
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd_mode_charger.cpp2
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