summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/test_codec.c10
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
21PLUGIN_HEADER 21PLUGIN_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
23static struct plugin_api* rb; 31static struct plugin_api* rb;
24 32
25struct wavinfo_t 33struct 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
636exit: 644exit:
637#ifndef SIMULATOR 645#ifndef SIMULATOR