diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-06-23 21:38:11 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-06-23 21:38:11 +0000 |
commit | 3ca42e4aacd4d33dd440fb9357217e71c1ea50a5 (patch) | |
tree | b85869a4f38dcb382a4bbd2ca86f8a8479dfa54a /firmware | |
parent | 7a36b22f175659468b8bec0cc623f4dd270b0edd (diff) |
D2: Take notice of the hold button.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17773 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/button-cowond2.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |