From d3b92e95219cb0281befe27d779eda49d58d27f5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 4 Oct 2002 11:52:46 +0000 Subject: 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 --- firmware/backlight.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'firmware') 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: + */ -- cgit v1.2.3