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_mem.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_mem.c')
-rw-r--r-- | apps/plugins/test_mem.c | 9 |
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) | |||
72 | int button = rb->button_get(false); | 72 | int button = rb->button_get(false); |
73 | switch (button) | 73 | switch (button) |
74 | { | 74 | { |
75 | case BUTTON_UP: | 75 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
76 | case ACTION_STD_PREV: | ||
76 | if (!boost) | 77 | if (!boost) |
77 | { | 78 | { |
78 | rb->cpu_boost(true); | 79 | rb->cpu_boost(true); |
@@ -80,15 +81,15 @@ enum plugin_status plugin_start(const void* parameter) | |||
80 | } | 81 | } |
81 | break; | 82 | break; |
82 | 83 | ||
83 | case BUTTON_DOWN: | 84 | case ACTION_STD_NEXT: |
84 | if (boost) | 85 | if (boost) |
85 | { | 86 | { |
86 | rb->cpu_boost(false); | 87 | rb->cpu_boost(false); |
87 | boost = false; | 88 | boost = false; |
88 | } | 89 | } |
89 | break; | 90 | break; |
90 | 91 | #endif | |
91 | case BUTTON_LEFT: | 92 | case ACTION_STD_CANCEL: |
92 | done = true; | 93 | done = true; |
93 | break; | 94 | break; |
94 | } | 95 | } |