From 874f4376ffeaf77af72df8537851980475d775f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 3 Dec 2008 11:30:18 +0000 Subject: [PATCH] Sansa AMS: ignore buttons when hold switch is on git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19311 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sansa-clip/button-clip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/target/arm/as3525/sansa-clip/button-clip.c b/firmware/target/arm/as3525/sansa-clip/button-clip.c index d29d5afd2d..b6da130d2f 100644 --- a/firmware/target/arm/as3525/sansa-clip/button-clip.c +++ b/firmware/target/arm/as3525/sansa-clip/button-clip.c @@ -36,6 +36,9 @@ int button_read_device(void) { int result = 0; + if(button_hold()) + return result; + /* direct GPIO connections */ if (GPIOA_PIN(7))