diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c index fcda5226ca..4486af95b1 100644 --- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c +++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c | |||
@@ -230,6 +230,7 @@ int button_read_device(void) | |||
230 | int delay = 30; | 230 | int delay = 30; |
231 | while(delay--) nop; | 231 | while(delay--) nop; |
232 | 232 | ||
233 | bool ccu_io_bit12 = CCU_IO & (1<<12); | ||
233 | CCU_IO &= ~(1<<12); | 234 | CCU_IO &= ~(1<<12); |
234 | 235 | ||
235 | /* B1 is shared with FM i2c */ | 236 | /* B1 is shared with FM i2c */ |
@@ -273,7 +274,8 @@ int button_read_device(void) | |||
273 | if(gpiob_pin0_dir) | 274 | if(gpiob_pin0_dir) |
274 | GPIOB_DIR |= 1<<1; | 275 | GPIOB_DIR |= 1<<1; |
275 | 276 | ||
276 | CCU_IO |= 1<<12; | 277 | if(ccu_io_bit12) |
278 | CCU_IO |= 1<<12; | ||
277 | 279 | ||
278 | #ifdef HAS_BUTTON_HOLD | 280 | #ifdef HAS_BUTTON_HOLD |
279 | #ifndef BOOTLOADER | 281 | #ifndef BOOTLOADER |