diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/powermgmt.c | 7 |
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 | ||
200 | static 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 |
206 | int long_delta; /* long term delta battery voltage */ | 201 | int long_delta; /* long term delta battery voltage */ |
207 | int short_delta; /* short term delta battery voltage */ | 202 | int short_delta; /* short term delta battery voltage */ |
@@ -506,7 +501,7 @@ static void battery_status_update(void) | |||
506 | */ | 501 | */ |
507 | static void handle_auto_poweroff(void) | 502 | static 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 |