diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/as3525/button-clip.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/button-clip.c b/firmware/target/arm/as3525/button-clip.c index 35b5e8af5e..c83590a06e 100644 --- a/firmware/target/arm/as3525/button-clip.c +++ b/firmware/target/arm/as3525/button-clip.c | |||
@@ -118,10 +118,7 @@ bool button_hold(void) | |||
118 | #ifdef SANSA_CLIPV2 | 118 | #ifdef SANSA_CLIPV2 |
119 | GPIOA_DIR |= 1<<7; | 119 | GPIOA_DIR |= 1<<7; |
120 | GPIOA_PIN(7) = 1<<7; | 120 | GPIOA_PIN(7) = 1<<7; |
121 | 121 | udelay(2); | |
122 | int delay = 50; | ||
123 | while(delay--) | ||
124 | asm("nop"); | ||
125 | #endif | 122 | #endif |
126 | 123 | ||
127 | bool hold_button = (GPIOA_PIN(3) != 0); | 124 | bool hold_button = (GPIOA_PIN(3) != 0); |
@@ -129,6 +126,7 @@ bool button_hold(void) | |||
129 | #ifdef SANSA_CLIPV2 | 126 | #ifdef SANSA_CLIPV2 |
130 | GPIOA_PIN(7) = 0; | 127 | GPIOA_PIN(7) = 0; |
131 | GPIOA_DIR &= ~(1<<7); | 128 | GPIOA_DIR &= ~(1<<7); |
129 | udelay(4); | ||
132 | #endif | 130 | #endif |
133 | 131 | ||
134 | #ifndef BOOTLOADER | 132 | #ifndef BOOTLOADER |