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 | |
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
-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 @@ 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 |