diff options
| -rw-r--r-- | firmware/backlight.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index 1aef613..8285ff8 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -656,9 +656,9 @@ bool is_remote_backlight_on(void) {return true;} #ifdef HAVE_BACKLIGHT_BRIGHTNESS #if defined(IRIVER_H300_SERIES) || defined(IAUDIO_X5) -#ifndef SIMULATOR void backlight_set_brightness(int val) { +#ifndef SIMULATOR /* set H300 brightness by changing the PWM accepts 0..15 but note that 0 and 1 give a black display! */ @@ -679,8 +679,10 @@ void backlight_set_brightness(int val) /* enable IRQs again */ set_irq_level(old_irq_level); -} +#else + val=0; #endif +} #endif #endif |