diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-04-03 23:14:25 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-04-03 23:14:25 +0000 |
commit | dc19fb37d503e15bda9fbe1b5d6c182c38dbf7d3 (patch) | |
tree | 16f050ed207b84d44a4a676aefbf8a991f15d6a1 /apps/plugins/test_boost.c | |
parent | f8811835e028f1a2b0ecb4b452cc85a8f79521f6 (diff) | |
download | rockbox-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_boost.c')
-rw-r--r-- | apps/plugins/test_boost.c | 9 |
1 files changed, 5 insertions, 4 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) | |||
55 | int button = rb->button_get(false); | 55 | int button = rb->button_get(false); |
56 | switch (button) | 56 | switch (button) |
57 | { | 57 | { |
58 | case BUTTON_UP: | 58 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
59 | case ACTION_STD_PREV: | ||
59 | if (!boost) | 60 | if (!boost) |
60 | { | 61 | { |
61 | rb->cpu_boost(true); | 62 | rb->cpu_boost(true); |
@@ -63,15 +64,15 @@ enum plugin_status plugin_start(const void* parameter) | |||
63 | } | 64 | } |
64 | break; | 65 | break; |
65 | 66 | ||
66 | case BUTTON_DOWN: | 67 | case ACTION_STD_NEXT: |
67 | if (boost) | 68 | if (boost) |
68 | { | 69 | { |
69 | rb->cpu_boost(false); | 70 | rb->cpu_boost(false); |
70 | boost = false; | 71 | boost = false; |
71 | } | 72 | } |
72 | break; | 73 | break; |
73 | 74 | #endif | |
74 | case BUTTON_LEFT: | 75 | case ACTION_STD_CANCEL: |
75 | done = true; | 76 | done = true; |
76 | break; | 77 | break; |
77 | } | 78 | } |