1
0
Fork 0
forked from len0rd/rockbox

HD200 - fix lcd power save command (not used currently)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26684 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcin Bukat 2010-06-08 09:44:17 +00:00
parent 0cc507214a
commit 12fa759aad

View file

@ -63,11 +63,17 @@ int lcd_default_contrast(void)
void lcd_powersave(bool on)
{
/* What is the point of having else construct here? */
if (on)
/* enter power saving mode
* this turns off lcd without controller reset
* probably ~1mA saving
*/
lcd_write_command(LCD_SET_POWER_SAVE | 1);
else
lcd_write_command(LCD_SET_POWER_SAVE | 1);
/* leave lcd power saving mode
* no need to reset and initialize controller
*/
lcd_write_command(LCD_SET_POWER_SAVE | 0);
}
void lcd_set_contrast(int val)