From dc19fb37d503e15bda9fbe1b5d6c182c38dbf7d3 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 3 Apr 2010 23:14:25 +0000 Subject: 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 --- apps/plugins/test_boost.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/plugins/test_boost.c') 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; } -- cgit v1.2.3