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 | |
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')
-rw-r--r-- | apps/plugins/test_boost.c | 9 | ||||
-rw-r--r-- | apps/plugins/test_mem.c | 9 |
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) | |||
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 | } |
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 | } |