diff options
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r-- | firmware/backlight.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index b475c61fc0..25a91632cd 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c | |||
@@ -550,11 +550,10 @@ void remote_backlight_set_timeout(int index) {(void)index;} | |||
550 | void backlight_set_brightness(int val) | 550 | void backlight_set_brightness(int val) |
551 | { | 551 | { |
552 | /* set H300 brightness by changing the PWM | 552 | /* set H300 brightness by changing the PWM |
553 | accepts 0..15 but note that 0 and 1 give a black display! */ | 553 | accepts 0..15 but note that 0 and 1 gives a black display! */ |
554 | unsigned char ucVal = (unsigned char)(val & 0x0F); | 554 | if(val < MIN_BRIGHTNESS_SETTING) |
555 | if(val<MIN_BRIGHTNESS_SETTING) | 555 | val = MIN_BRIGHTNESS_SETTING; |
556 | val=MIN_BRIGHTNESS_SETTING; | 556 | pcf50606_set_bl_pwm(val & 0xf); |
557 | pcf50606_set_bl_pwm(ucVal); | ||
558 | } | 557 | } |
559 | #endif | 558 | #endif |
560 | 559 | ||