forked from len0rd/rockbox
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
This commit is contained in:
parent
e6a9ba55a1
commit
621725a2b8
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue