summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c')
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
index 060933d0ac..5ec2025667 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
@@ -257,6 +257,9 @@ int button_read_device(void)
257 btn |= BUTTON_RIGHT; 257 btn |= BUTTON_RIGHT;
258 if (GPIOB_PIN(1) & 1<<1) 258 if (GPIOB_PIN(1) & 1<<1)
259 btn |= BUTTON_HOME; 259 btn |= BUTTON_HOME;
260 if (fuzev2_variant == 1)
261 btn ^= BUTTON_HOME;
262
260 if (gpiod6 & 1<<6) 263 if (gpiod6 & 1<<6)
261 { /* power/hold is on the same pin. we know it's hold if the bit isn't 264 { /* power/hold is on the same pin. we know it's hold if the bit isn't
262 * set now anymore */ 265 * set now anymore */