summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-04 11:52:46 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-04 11:52:46 +0000
commitd3b92e95219cb0281befe27d779eda49d58d27f5 (patch)
treee3c71b232edc88c3421c5b47f4a2c27e78f83e3b /firmware
parenta063c83d81e6dad379a2b647b910701e8bbe590e (diff)
Now backlight really stays on when the charger is connected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2500 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index a1d8305d4e..7b58fc2f90 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -66,8 +66,6 @@ void backlight_thread(void)
backlight_timer = HZ*timeout_value[backlight_timeout];
}
- backlight_timer = HZ*timeout_value[backlight_timeout];
-
if(backlight_timer < 0)
{
backlight_timer = 0; /* timer value 0 will not get ticked */
@@ -136,14 +134,14 @@ void backlight_set_on_when_charging(bool yesno)
void backlight_tick(void)
{
- bool charger_is_inserted = charger_inserted();
+ bool charger_is_inserted = charger_inserted();
if( backlight_on_when_charging &&
(charger_was_inserted != charger_is_inserted) )
{
backlight_on();
}
charger_was_inserted = charger_is_inserted;
-
+
if(backlight_timer)
{
backlight_timer--;
@@ -164,3 +162,9 @@ void backlight_init(void)
backlight_on();
}
+
+/* -----------------------------------------------------------------
+ * local variables:
+ * eval: (load-file "rockbox-mode.el")
+ * end:
+ */