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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
index eebe9b945f..617f7095f4 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
@@ -39,7 +39,7 @@ bool _backlight_init(void)
39 ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10); 39 ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10);
40 40
41 /* needed for button light */ 41 /* needed for button light */
42 if (fuzev2_variant == 1) 42 if (amsv2_variant == 1)
43 ascodec_write_pmu(0x1a, 1, 0x30); /* MUX_PWGD = PWM */ 43 ascodec_write_pmu(0x1a, 1, 0x30); /* MUX_PWGD = PWM */
44 44
45 return true; 45 return true;
@@ -63,7 +63,7 @@ void _backlight_off(void)
63 63
64void _buttonlight_on(void) 64void _buttonlight_on(void)
65{ 65{
66 if (fuzev2_variant == 0) 66 if (amsv2_variant == 0)
67 { 67 {
68 GPIOB_DIR |= 1<<5; 68 GPIOB_DIR |= 1<<5;
69 GPIOB_PIN(5) = (1<<5); 69 GPIOB_PIN(5) = (1<<5);
@@ -77,7 +77,7 @@ void _buttonlight_on(void)
77 77
78void _buttonlight_off(void) 78void _buttonlight_off(void)
79{ 79{
80 if (fuzev2_variant == 0) 80 if (amsv2_variant == 0)
81 { 81 {
82 GPIOB_PIN(5) = 0; 82 GPIOB_PIN(5) = 0;
83 GPIOB_DIR &= ~(1<<5); 83 GPIOB_DIR &= ~(1<<5);