summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-20 23:15:56 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-20 23:15:56 +0000
commit26c8eebe4ff447349b4980683739c632c84e2f05 (patch)
tree7277258d8bb1fb283e26ebc37c89d6fed7e1c6b1
parent59462a8bf82aa453f09e85feb607555a582625f4 (diff)
downloadrockbox-26c8eebe4ff447349b4980683739c632c84e2f05.tar.gz
rockbox-26c8eebe4ff447349b4980683739c632c84e2f05.zip
Clipv1: cosmetics
Move code not defined for bootloader under a single preprocessor check git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26219 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/as3525/sansa-clip/button-clip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/button-clip.c b/firmware/target/arm/as3525/sansa-clip/button-clip.c
index 53ebfa1295..a64fddb564 100644
--- a/firmware/target/arm/as3525/sansa-clip/button-clip.c
+++ b/firmware/target/arm/as3525/sansa-clip/button-clip.c
@@ -23,7 +23,7 @@
23#include "system.h" 23#include "system.h"
24#include "button-target.h" 24#include "button-target.h"
25#include "as3525.h" 25#include "as3525.h"
26#ifndef BOOTLOADER 26#ifndef BOOTLOADER /* backlight on hold handling */
27#include "backlight.h" 27#include "backlight.h"
28#endif 28#endif
29 29
@@ -138,13 +138,13 @@ int button_read_device(void)
138 138
139bool button_hold(void) 139bool button_hold(void)
140{ 140{
141#ifndef BOOTLOADER
142 static bool hold_button_old = false;
143#endif
144 bool hold_button = (GPIOA_PIN(3) != 0); 141 bool hold_button = (GPIOA_PIN(3) != 0);
145 142
146#ifndef BOOTLOADER 143#ifndef BOOTLOADER
147 /* light handling */ 144 /* backlight handling */
145
146 static bool hold_button_old = false;
147
148 if (hold_button != hold_button_old) 148 if (hold_button != hold_button_old)
149 { 149 {
150 hold_button_old = hold_button; 150 hold_button_old = hold_button;