summaryrefslogtreecommitdiffstats
path: root/apps/plugins/test_mem.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-04-03 23:14:25 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-04-03 23:14:25 +0000
commitdc19fb37d503e15bda9fbe1b5d6c182c38dbf7d3 (patch)
tree16f050ed207b84d44a4a676aefbf8a991f15d6a1 /apps/plugins/test_mem.c
parentf8811835e028f1a2b0ecb4b452cc85a8f79521f6 (diff)
downloadrockbox-dc19fb37d503e15bda9fbe1b5d6c182c38dbf7d3.tar.gz
rockbox-dc19fb37d503e15bda9fbe1b5d6c182c38dbf7d3.zip
Make test_mem.c and test_boost.c compilable on targets without BUTTON_UP.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25464 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_mem.c')
-rw-r--r--apps/plugins/test_mem.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/test_mem.c b/apps/plugins/test_mem.c
index b38a454c33..80995c9bfb 100644
--- a/apps/plugins/test_mem.c
+++ b/apps/plugins/test_mem.c
@@ -72,7 +72,8 @@ enum plugin_status plugin_start(const void* parameter)
int button = rb->button_get(false);
switch (button)
{
- case BUTTON_UP:
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ case ACTION_STD_PREV:
if (!boost)
{
rb->cpu_boost(true);
@@ -80,15 +81,15 @@ enum plugin_status plugin_start(const void* parameter)
}
break;
- case BUTTON_DOWN:
+ case ACTION_STD_NEXT:
if (boost)
{
rb->cpu_boost(false);
boost = false;
}
break;
-
- case BUTTON_LEFT:
+#endif
+ case ACTION_STD_CANCEL:
done = true;
break;
}