mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Sansa clip zip: do not enable display if it's already enabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30903 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3a66005739
commit
9310fc0b4c
1 changed files with 5 additions and 1 deletions
|
|
@ -263,7 +263,9 @@ static void lcd_init_type1(void)
|
||||||
/* enables/disables the lcd */
|
/* enables/disables the lcd */
|
||||||
void lcd_enable(bool on)
|
void lcd_enable(bool on)
|
||||||
{
|
{
|
||||||
lcd_enabled = on;
|
if (on == lcd_enabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (lcd_type == 0) {
|
if (lcd_type == 0) {
|
||||||
if (on) {
|
if (on) {
|
||||||
|
|
@ -301,6 +303,8 @@ void lcd_enable(bool on)
|
||||||
lcd_write_dat(0x01);
|
lcd_write_dat(0x01);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lcd_enabled = on;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* returns true if the lcd is enabled */
|
/* returns true if the lcd is enabled */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue