summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-14 11:25:14 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-14 11:25:14 +0000
commitbac1ae5aa1c2f0009ef34f3bad87b23072a28d2f (patch)
treebe44723c2e5accfb11ddd200f833efd5ba055ad8
parent3a203ec68de8778003d7ed5b62a810e7fa51b102 (diff)
The music now pauses correctly in car adapter mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4879 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/powermgmt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index aade687ba8..c321f60d04 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -362,9 +362,10 @@ void set_car_adapter_mode(bool setting)
car_adapter_mode_enabled = setting;
}
+static bool charger_power_is_on;
+
static void car_adapter_mode_processing(void)
{
- static bool charger_power_is_on = false;
static bool waiting_to_resume_play = false;
static long play_resume_time;
@@ -834,6 +835,8 @@ void powermgmt_init(void)
#endif
#endif
+ charger_power_is_on = charger_inserted();
+
create_thread(power_thread, power_stack, sizeof(power_stack),
power_thread_name);
}