1
0
Fork 0
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:
Daniel Stenberg 2002-10-01 11:12:57 +00:00
parent ad19f6f912
commit c43b36c70c
3 changed files with 5 additions and 6 deletions

View file

@ -64,9 +64,7 @@ struct user_settings
int contrast; /* lcd contrast: 0-100 0=low 100=high */ int contrast; /* lcd contrast: 0-100 0=low 100=high */
int poweroff; /* power off timer */ int poweroff; /* power off timer */
int backlight_timeout; /* backlight off timeout: 0-18 0=never,1=always,then according to timeout_values[] */ 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; bool backlight_on_when_charging;
#endif
bool discharge; /* maintain charge of at least: false = 90%, true = 10% */ bool discharge; /* maintain charge of at least: false = 90%, true = 10% */
/* resume settings */ /* resume settings */

View file

@ -144,7 +144,6 @@ static bool resume(void)
names, 3, NULL ); names, 3, NULL );
} }
#ifdef HAVE_CHARGE_CTRL
static bool backlight_on_when_charging(void) static bool backlight_on_when_charging(void)
{ {
bool result = set_bool(str(LANG_BACKLIGHT_ON_WHEN_CHARGING), 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); backlight_set_on_when_charging(global_settings.backlight_on_when_charging);
return result; return result;
} }
#endif
static bool backlight_timer(void) static bool backlight_timer(void)
{ {
@ -387,9 +385,7 @@ static bool display_settings_menu(void)
struct menu_items items[] = { struct menu_items items[] = {
{ str(LANG_SCROLL_MENU), scroll_speed }, { str(LANG_SCROLL_MENU), scroll_speed },
{ str(LANG_BACKLIGHT), backlight_timer }, { str(LANG_BACKLIGHT), backlight_timer },
#ifdef HAVE_CHARGE_CTRL
{ str(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging }, { str(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging },
#endif
{ str(LANG_CONTRAST), contrast }, { str(LANG_CONTRAST), contrast },
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
{ str(LANG_PM_MENU), peak_meter_menu }, { str(LANG_PM_MENU), peak_meter_menu },

View file

@ -128,3 +128,8 @@ void backlight_set_timeout(int seconds)
{ {
(void)seconds; (void)seconds;
} }
void backlight_set_on_when_charging(bool beep)
{
(void)beep;
}