summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c')
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
index 29e145053c..6797903ba9 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
@@ -59,14 +59,20 @@ void _backlight_off(void)
59 59
60void _buttonlight_on(void) 60void _buttonlight_on(void)
61{ 61{
62 GPIOB_DIR |= 1<<5; 62 if (fuzev2_variant == 0)
63 GPIOB_PIN(5) = (1<<5); 63 {
64 buttonlight_is_on = 1; 64 GPIOB_DIR |= 1<<5;
65 GPIOB_PIN(5) = (1<<5);
66 buttonlight_is_on = 1;
67 }
65} 68}
66 69
67void _buttonlight_off(void) 70void _buttonlight_off(void)
68{ 71{
69 GPIOB_PIN(5) = 0; 72 if (fuzev2_variant == 0)
70 GPIOB_DIR &= ~(1<<5); 73 {
71 buttonlight_is_on = 0; 74 GPIOB_PIN(5) = 0;
75 GPIOB_DIR &= ~(1<<5);
76 buttonlight_is_on = 0;
77 }
72} 78}