summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index db1033dc82..1cb9472e0f 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -1048,6 +1048,13 @@ static int button_read(void)
return retval;
}
+#if (CONFIG_KEYPAD == IPOD_4G_PAD)
+bool button_hold(void)
+{
+ return (GPIOA_INPUT_VAL & 0x20)?false:true;
+}
+#endif
+
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
bool button_hold(void)
{