summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-03-15 20:16:21 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-03-15 20:16:21 +0000
commit211d827c0a29083d96e0432c6965d8f3d59a9884 (patch)
treef517af7fdc6e11a8bf921b0c8f6462cd11e6767e /apps/gui
parent451280aa6e89fdbb5b93ee8fe1d9c5482ff810a6 (diff)
Fix ifdefing for wps hold button tags, enables hold button in wps for ipod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9052 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index a959ba43b0..1b0f44f57d 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -746,13 +746,15 @@ static char* get_tag(struct wps_data* wps_data,
snprintf(buf, buf_size, "%d", *intval);
return buf;
-#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
+#ifdef HAS_BUTTON_HOLD
case 'h': /* hold */
*flags |= WPS_REFRESH_DYNAMIC;
if (button_hold())
return "h";
else
return NULL;
+#endif
+#ifdef HAS_REMOTE_BUTTON_HOLD
case 'r': /* remote hold */
*flags |= WPS_REFRESH_DYNAMIC;
if (remote_button_hold())