diff options
Diffstat (limited to 'apps')
-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 |