summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 54e7592987..18764591ab 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -197,11 +197,6 @@ void reset_poweroff_timer(void)
197 197
198#else /* not SIMULATOR ******************************************************/ 198#else /* not SIMULATOR ******************************************************/
199 199
200static const unsigned char poweroff_idle_timeout_value[15] =
201{
202 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 30, 45, 60
203};
204
205#if CONFIG_CHARGING == CHARGING_CONTROL 200#if CONFIG_CHARGING == CHARGING_CONTROL
206int long_delta; /* long term delta battery voltage */ 201int long_delta; /* long term delta battery voltage */
207int short_delta; /* short term delta battery voltage */ 202int short_delta; /* short term delta battery voltage */
@@ -506,7 +501,7 @@ static void battery_status_update(void)
506 */ 501 */
507static void handle_auto_poweroff(void) 502static void handle_auto_poweroff(void)
508{ 503{
509 long timeout = poweroff_idle_timeout_value[poweroff_timeout]*60*HZ; 504 long timeout = poweroff_timeout*60*HZ;
510 int audio_stat = audio_status(); 505 int audio_stat = audio_status();
511 506
512#if CONFIG_CHARGING 507#if CONFIG_CHARGING