forked from len0rd/rockbox
backlight when charging now is for players and simulators too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2466 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ad19f6f912
commit
c43b36c70c
3 changed files with 5 additions and 6 deletions
|
@ -64,9 +64,7 @@ struct user_settings
|
|||
int contrast; /* lcd contrast: 0-100 0=low 100=high */
|
||||
int poweroff; /* power off timer */
|
||||
int backlight_timeout; /* backlight off timeout: 0-18 0=never,1=always,then according to timeout_values[] */
|
||||
#ifdef HAVE_CHARGE_CTRL
|
||||
bool backlight_on_when_charging;
|
||||
#endif
|
||||
bool discharge; /* maintain charge of at least: false = 90%, true = 10% */
|
||||
|
||||
/* resume settings */
|
||||
|
|
|
@ -144,7 +144,6 @@ static bool resume(void)
|
|||
names, 3, NULL );
|
||||
}
|
||||
|
||||
#ifdef HAVE_CHARGE_CTRL
|
||||
static bool backlight_on_when_charging(void)
|
||||
{
|
||||
bool result = set_bool(str(LANG_BACKLIGHT_ON_WHEN_CHARGING),
|
||||
|
@ -152,7 +151,6 @@ static bool backlight_on_when_charging(void)
|
|||
backlight_set_on_when_charging(global_settings.backlight_on_when_charging);
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool backlight_timer(void)
|
||||
{
|
||||
|
@ -387,9 +385,7 @@ static bool display_settings_menu(void)
|
|||
struct menu_items items[] = {
|
||||
{ str(LANG_SCROLL_MENU), scroll_speed },
|
||||
{ str(LANG_BACKLIGHT), backlight_timer },
|
||||
#ifdef HAVE_CHARGE_CTRL
|
||||
{ str(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging },
|
||||
#endif
|
||||
{ str(LANG_CONTRAST), contrast },
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
{ str(LANG_PM_MENU), peak_meter_menu },
|
||||
|
|
|
@ -128,3 +128,8 @@ void backlight_set_timeout(int seconds)
|
|||
{
|
||||
(void)seconds;
|
||||
}
|
||||
|
||||
void backlight_set_on_when_charging(bool beep)
|
||||
{
|
||||
(void)beep;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue