diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c | 18 |
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 | ||
60 | void _buttonlight_on(void) | 60 | void _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 | ||
67 | void _buttonlight_off(void) | 70 | void _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 | } |