From b95fe1afc694ab97b6f39fc4bd0baa238e687a8f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 1 Oct 2002 10:59:36 +0000 Subject: Mark A. Hillebrand's patch that offers a new setting that if enabled, keeps the backlight on all the time while the charger is connected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2464 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/settings.h') diff --git a/apps/settings.h b/apps/settings.h index bbc7bb3..eed0b61 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -63,7 +63,10 @@ struct user_settings int contrast; /* lcd contrast: 0-100 0=low 100=high */ int poweroff; /* power off timer */ - int backlight; /* backlight off timer: 0-100 0=never:each 1% = 10 secs */ + 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 +147,8 @@ extern char rockboxdir[]; #endif #define MIN_CONTRAST_SETTING 5 #define DEFAULT_POWEROFF_SETTING 0 -#define DEFAULT_BACKLIGHT_SETTING 5 +#define DEFAULT_BACKLIGHT_TIMEOUT_SETTING 5 +#define DEFAULT_BACKLIGHT_ON_WHEN_CHARGING_SETTING 0 #define DEFAULT_FF_REWIND_MIN_STEP FF_REWIND_1000 #define DEFAULT_FF_REWIND_ACCEL_SETTING 3 -- cgit v1.1