summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 1aef613ae1..8285ff894b 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -656,9 +656,9 @@ bool is_remote_backlight_on(void) {return true;}
656 656
657#ifdef HAVE_BACKLIGHT_BRIGHTNESS 657#ifdef HAVE_BACKLIGHT_BRIGHTNESS
658#if defined(IRIVER_H300_SERIES) || defined(IAUDIO_X5) 658#if defined(IRIVER_H300_SERIES) || defined(IAUDIO_X5)
659#ifndef SIMULATOR
660void backlight_set_brightness(int val) 659void backlight_set_brightness(int val)
661{ 660{
661#ifndef SIMULATOR
662 /* set H300 brightness by changing the PWM 662 /* set H300 brightness by changing the PWM
663 accepts 0..15 but note that 0 and 1 give a black display! */ 663 accepts 0..15 but note that 0 and 1 give a black display! */
664 664
@@ -679,8 +679,10 @@ void backlight_set_brightness(int val)
679 679
680 /* enable IRQs again */ 680 /* enable IRQs again */
681 set_irq_level(old_irq_level); 681 set_irq_level(old_irq_level);
682} 682#else
683 val=0;
683#endif 684#endif
685}
684#endif 686#endif
685#endif 687#endif
686 688