From 3ca42e4aacd4d33dd440fb9357217e71c1ea50a5 Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Mon, 23 Jun 2008 21:38:11 +0000 Subject: [PATCH] D2: Take notice of the hold button. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17773 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tcc780x/cowond2/button-cowond2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c index c0672f1c3a..9a68c1ad58 100644 --- a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c @@ -119,6 +119,8 @@ int button_read_device(int *data) int btn = BUTTON_NONE; int adc; *data = 0; + + if (button_hold()) return BUTTON_NONE; if (GPIOB & 0x4) {