diff options
author | Dave Chapman <dave@dchapman.com> | 2007-05-23 20:51:47 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-05-23 20:51:47 +0000 |
commit | 621725a2b8419022092aa6f4d01a51be4a25416e (patch) | |
tree | fc8de1d0f60f52fe805e667443db167921da3bec /apps/plugins | |
parent | e6a9ba55a1908ee8864c3238189df028ce1a0228 (diff) | |
download | rockbox-621725a2b8419022092aa6f4d01a51be4a25416e.tar.gz rockbox-621725a2b8419022092aa6f4d01a51be4a25416e.zip |
Fix compilation on the H10 - it doesn't have BUTTON_SELECT.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13484 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/test_codec.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 9f452de184..146eb3f983 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c | |||
@@ -20,6 +20,14 @@ | |||
20 | 20 | ||
21 | PLUGIN_HEADER | 21 | PLUGIN_HEADER |
22 | 22 | ||
23 | /* All swcodec targets have BUTTON_SELECT apart from the H10 */ | ||
24 | |||
25 | #if CONFIG_KEYPAD == IRIVER_H10_PAD | ||
26 | #define TESTCODEC_EXITBUTTON BUTTON_RIGHT | ||
27 | #else | ||
28 | #define TESTCODEC_EXITBUTTON BUTTON_SELECT | ||
29 | #endif | ||
30 | |||
23 | static struct plugin_api* rb; | 31 | static struct plugin_api* rb; |
24 | 32 | ||
25 | struct wavinfo_t | 33 | struct wavinfo_t |
@@ -631,7 +639,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
631 | } | 639 | } |
632 | rb->lcd_update(); | 640 | rb->lcd_update(); |
633 | 641 | ||
634 | while (rb->button_get(true) != BUTTON_SELECT); | 642 | while (rb->button_get(true) != TESTCODEC_EXITBUTTON); |
635 | 643 | ||
636 | exit: | 644 | exit: |
637 | #ifndef SIMULATOR | 645 | #ifndef SIMULATOR |