diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-08 08:32:05 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-08 08:32:05 +0000 |
commit | 499a0e6bed2b9e56df8b008957a549761d054dca (patch) | |
tree | 10c1bebcd7dc3d8398058fcf48fd307a6330763f | |
parent | 3f43765925d9df7ae1c76b9ed29ee779ad190e89 (diff) |
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
-rw-r--r-- | apps/settings_list.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index a60ee3f2d6..c5f9932125 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), |