forked from len0rd/rockbox
The Code Police struck again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8352 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d6d5da1841
commit
b3a9ad8590
1 changed files with 4 additions and 5 deletions
|
@ -550,11 +550,10 @@ void remote_backlight_set_timeout(int index) {(void)index;}
|
|||
void backlight_set_brightness(int val)
|
||||
{
|
||||
/* set H300 brightness by changing the PWM
|
||||
accepts 0..15 but note that 0 and 1 give a black display! */
|
||||
unsigned char ucVal = (unsigned char)(val & 0x0F);
|
||||
accepts 0..15 but note that 0 and 1 gives a black display! */
|
||||
if(val < MIN_BRIGHTNESS_SETTING)
|
||||
val = MIN_BRIGHTNESS_SETTING;
|
||||
pcf50606_set_bl_pwm(ucVal);
|
||||
pcf50606_set_bl_pwm(val & 0xf);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue