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
This commit is contained in:
parent
3f43765925
commit
499a0e6bed
1 changed files with 7 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue