From 009cebeab263085d142c413386f1fc7760792b6d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 14 May 2008 19:29:25 +0000 Subject: Straigten-out lcd sleeping on Gigabeat F/X. Add a service function to backlight.c to handle lcd sleep timer. Make HAVE_LCD_SLEEP useable without a setting and use HAVE_LCD_SLEEP_SETTING when a setting is available in addition to HCD_HAVE_SLEEP. If a setting isn't used, the target must define the timeout to be used in the config. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17505 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index 9fb1f12..1a857ea 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -924,7 +924,7 @@ void settings_apply(bool read_disk) #ifdef HAS_BUTTON_HOLD backlight_set_on_button_hold(global_settings.backlight_on_button_hold); #endif -#ifdef HAVE_LCD_SLEEP +#ifdef HAVE_LCD_SLEEP_SETTING lcd_set_sleep_after_backlight_off(global_settings.lcd_sleep_after_backlight_off); #endif #endif /* HAVE_BACKLIGHT */ -- cgit v1.1