diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-02-25 19:12:14 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-02-25 19:12:14 +0000 |
commit | f40e366950ff8e54c34f2344a1a416371c7446bb (patch) | |
tree | 2a7a42abf76d937b6699aa0d76313ebab2fe9381 | |
parent | 3b66990c2e54971fe552585d043c2f335c00bc08 (diff) | |
download | rockbox-f40e366950ff8e54c34f2344a1a416371c7446bb.tar.gz rockbox-f40e366950ff8e54c34f2344a1a416371c7446bb.zip |
Fixed bad backlight and peak meter value list (Henrik Backe)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3337 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/settings.c | 9 | ||||
-rw-r--r-- | docs/CUSTOM_CFG_FORMAT | 7 |
2 files changed, 7 insertions, 9 deletions
diff --git a/apps/settings.c b/apps/settings.c index 2599a119f4..2bb2e97ab3 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -902,10 +902,9 @@ bool settings_load_config(char* file) | |||
902 | static char* options[] = { | 902 | static char* options[] = { |
903 | "off","200ms","300ms","500ms", | 903 | "off","200ms","300ms","500ms", |
904 | "1","2","3","4","5","6","7","8","9","10", | 904 | "1","2","3","4","5","6","7","8","9","10", |
905 | "15","20","25","30","45","60","90", | 905 | "15","20","30","1min"}; |
906 | "2min","3min","5min","10min","20min","45min","90min"}; | ||
907 | set_cfg_option(&global_settings.peak_meter_hold, value, | 906 | set_cfg_option(&global_settings.peak_meter_hold, value, |
908 | options, 28); | 907 | options, 18); |
909 | } | 908 | } |
910 | else if (!strcasecmp(name, "peak meter clip hold")) { | 909 | else if (!strcasecmp(name, "peak meter clip hold")) { |
911 | static char* options[] = { | 910 | static char* options[] = { |
@@ -977,9 +976,9 @@ bool settings_load_config(char* file) | |||
977 | else if (!strcasecmp(name, "backlight timeout")) { | 976 | else if (!strcasecmp(name, "backlight timeout")) { |
978 | static char* options[] = { | 977 | static char* options[] = { |
979 | "off","on","1","2","3","4","5","6","7","8","9", | 978 | "off","on","1","2","3","4","5","6","7","8","9", |
980 | "10","15","20","30","45","60","90"}; | 979 | "10","15","20","25","30","45","60","90"}; |
981 | set_cfg_option(&global_settings.backlight_timeout, value, | 980 | set_cfg_option(&global_settings.backlight_timeout, value, |
982 | options, 18); | 981 | options, 19); |
983 | } | 982 | } |
984 | else if (!strcasecmp(name, "backlight when plugged")) | 983 | else if (!strcasecmp(name, "backlight when plugged")) |
985 | set_cfg_bool(&global_settings.backlight_on_when_charging, value); | 984 | set_cfg_bool(&global_settings.backlight_on_when_charging, value); |
diff --git a/docs/CUSTOM_CFG_FORMAT b/docs/CUSTOM_CFG_FORMAT index 9f05726d28..9ce9daafe7 100644 --- a/docs/CUSTOM_CFG_FORMAT +++ b/docs/CUSTOM_CFG_FORMAT | |||
@@ -34,12 +34,12 @@ show files (all, supported, music, playlists) | |||
34 | follow playlist (on, off) | 34 | follow playlist (on, off) |
35 | 35 | ||
36 | scroll speed (1 - 10) [Hz] | 36 | scroll speed (1 - 10) [Hz] |
37 | start delay (0 - 250) [1/10s] | 37 | scroll delay (0 - 250) [1/10s] |
38 | scroll step (1 - 112) [pixels] | 38 | scroll step (1 - 112) [pixels] |
39 | bidir limit (0 - 200) [% of screen width] | 39 | bidir limit (0 - 200) [% of screen width] |
40 | contrast (0 - 63) | 40 | contrast (0 - 63) |
41 | backlight timeout (off, on, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, | 41 | backlight timeout (off, on, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, |
42 | 15, 20, 30, 45, 60, 90) [seconds] | 42 | 15, 20, 25, 30, 45, 60, 90) [seconds] |
43 | backlight when plugged (on, off) | 43 | backlight when plugged (on, off) |
44 | 44 | ||
45 | disk spindown (3 - 254) [seconds] | 45 | disk spindown (3 - 254) [seconds] |
@@ -59,8 +59,7 @@ auto volume (0=off, 1=2s, 2=4s, 3=8s) | |||
59 | peak meter release (1 - 126) | 59 | peak meter release (1 - 126) |
60 | peak meter hold (off, 200ms, 300ms, 500ms, | 60 | peak meter hold (off, 200ms, 300ms, 500ms, |
61 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, | 61 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, |
62 | 15, 20, 25, 30, 45, 90, | 62 | 15, 20, 30, 1min) |
63 | 2min, 3min, 5min, 10min, 20min, 45min, 90min) | ||
64 | peak meter clip hold (on, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, | 63 | peak meter clip hold (on, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, |
65 | 15, 20, 25, 30, 45, 60, 90, | 64 | 15, 20, 25, 30, 45, 60, 90, |
66 | 2min, 3min, 5min, 10min, 20min, 45min, 90min) | 65 | 2min, 3min, 5min, 10min, 20min, 45min, 90min) |