Save around a hundred uA - not much, but why not? - No functional change for users.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17519 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2008-05-15 01:04:47 +00:00
parent f37371246c
commit 6450de3eae

View file

@ -280,6 +280,7 @@ void lcd_sleep(void)
lcd_enable(false);
LCD_SPI_powerdown();
GPBDAT &= ~(1 << 2); /* Fully disable the backlight controller */
}
}
@ -293,6 +294,7 @@ void lcd_enable(bool state)
/* "enabled" implies "powered" */
if (!lcd_powered)
{
GPBDAT |= (1 << 2); /* Enable the backlight controller */
LCD_SPI_powerup();
/* Wait long enough for a frame to be written - yes, it
* takes awhile. */