summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-11-19 07:58:20 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-11-19 07:58:20 +0000
commit05fdb1ad30bbeeabe3cb74f4f5d366a53c8f3cef (patch)
tree83081b5d7b933b118a4672b4cf0c4750220ed69b /apps
parent80ed9ead8748f2f569b35a7af1f9487990b10c42 (diff)
Added option to reduce (and almost prevent) the remote lcd ticking
problem with a cost slightly more CPU usage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7985 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/lang/english.lang7
-rw-r--r--apps/settings.c4
-rw-r--r--apps/settings.h2
-rw-r--r--apps/settings_menu.c13
4 files changed, 25 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 58ec145a29..5e49b95708 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -3454,3 +3454,10 @@ desc: Custom themes menu
eng: "Browse Themes"
voice: "Browse Themes"
new:
+
+id: LANG_REDUCE_TICKING
+desc: in remote lcd settings menu
+eng: "Reduce ticking"
+voice: "Reduce ticking"
+new:
+
diff --git a/apps/settings.c b/apps/settings.c
index 36bd332ae3..02fa6ee69f 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -277,6 +277,10 @@ static const struct bit_entry rtc_bits[] =
{1, S_O(bidi_support), false, "bidi hebrew/arabic", off_on },
#endif
+#ifdef HAVE_REMOTE_LCD /* move to REMOTE_LCD next time we bump version */
+ {1, S_O(remote_reduce_ticking), false, "remote reduce ticking", off_on },
+#endif
+
/* new stuff to be added here */
/* If values are just added to the end, no need to bump the version. */
diff --git a/apps/settings.h b/apps/settings.h
index c41ee1d8e3..0dd9789991 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -343,6 +343,8 @@ struct user_settings
int remote_backlight_timeout; /* backlight off timeout: 0-18 0=never,
1=always,
then according to timeout_values[] */
+ bool remote_reduce_ticking; /* 0=normal operation,
+ 1=EMI reduce on with cost more CPU. */
#endif
bool next_folder; /* move to next folder */
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 27e24347a3..05fcacf77a 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -120,6 +120,16 @@ static bool remote_flip_display(void)
return rc;
}
+
+static bool remote_reduce_ticking(void)
+{
+ bool rc = set_bool( str(LANG_REDUCE_TICKING),
+ &global_settings.remote_reduce_ticking);
+
+ lcd_remote_emireduce(global_settings.remote_reduce_ticking);
+
+ return rc;
+}
#endif
#ifdef CONFIG_BACKLIGHT
@@ -1540,7 +1550,8 @@ static bool lcd_remote_settings_menu(void)
{ ID2P(LANG_CONTRAST), remote_contrast },
{ ID2P(LANG_INVERT), remote_invert },
{ ID2P(LANG_FLIP_DISPLAY), remote_flip_display },
- };
+ { ID2P(LANG_REDUCE_TICKING), remote_reduce_ticking },
+};
m=menu_init( items, sizeof(items) / sizeof(*items), NULL,
NULL, NULL, NULL);