From 621725a2b8419022092aa6f4d01a51be4a25416e Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 23 May 2007 20:51:47 +0000 Subject: 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 --- apps/plugins/test_codec.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 @@ PLUGIN_HEADER +/* All swcodec targets have BUTTON_SELECT apart from the H10 */ + +#if CONFIG_KEYPAD == IRIVER_H10_PAD +#define TESTCODEC_EXITBUTTON BUTTON_RIGHT +#else +#define TESTCODEC_EXITBUTTON BUTTON_SELECT +#endif + static struct plugin_api* rb; struct wavinfo_t @@ -631,7 +639,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) } rb->lcd_update(); - while (rb->button_get(true) != BUTTON_SELECT); + while (rb->button_get(true) != TESTCODEC_EXITBUTTON); exit: #ifndef SIMULATOR -- cgit v1.2.3