From 3892350770c7d7135f4ceb6eca4db9cc99c30222 Mon Sep 17 00:00:00 2001 From: jdgordon Date: Mon, 8 Feb 2010 08:32:05 +0000 Subject: [PATCH] set the default backlight timeout to "on" in the sim git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24564 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings_list.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/settings_list.c b/apps/settings_list.c index a60ee3f2d..c5f993212 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -317,6 +317,11 @@ static int32_t getlang_unit_0_is_skip_track(int value, int unit) } #ifdef HAVE_BACKLIGHT +#ifdef SIMULATOR +#define DEFAULT_BACKLIGHT_TIMEOUT 0 +#else +#define DEFAULT_BACKLIGHT_TIMEOUT 15 +#endif static const char* backlight_formatter(char *buffer, size_t buffer_size, int val, const char *unit) { @@ -581,7 +586,8 @@ const struct settings_list settings[] = { MAX_CONTRAST_SETTING, 1, NULL, NULL }}}}, #endif #ifdef HAVE_BACKLIGHT - TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, backlight_timeout, LANG_BACKLIGHT, 15, + TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, backlight_timeout, LANG_BACKLIGHT, + DEFAULT_BACKLIGHT_TIMEOUT, "backlight timeout", off_on, UNIT_SEC, backlight_formatter, backlight_getlang, backlight_set_timeout, 20, -1,0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,120), -- 2.11.4.GIT