summaryrefslogtreecommitdiff
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
parentf8811835e028f1a2b0ecb4b452cc85a8f79521f6 (diff)
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
-rw-r--r--apps/plugins/test_boost.c9
-rw-r--r--apps/plugins/test_mem.c9
2 files changed, 10 insertions, 8 deletions
diff --git a/apps/plugins/test_boost.c b/apps/plugins/test_boost.c
index cd38932b1b..e5bdbb367f 100644
--- a/apps/plugins/test_boost.c
+++ b/apps/plugins/test_boost.c
@@ -55,7 +55,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);
@@ -63,15 +64,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;
}
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;
}