diff options
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c index 14f5cc1ce7..4650913ce3 100644 --- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c +++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c | |||
@@ -263,7 +263,9 @@ static void lcd_init_type1(void) | |||
263 | /* enables/disables the lcd */ | 263 | /* enables/disables the lcd */ |
264 | void lcd_enable(bool on) | 264 | void lcd_enable(bool on) |
265 | { | 265 | { |
266 | lcd_enabled = on; | 266 | if (on == lcd_enabled) { |
267 | return; | ||
268 | } | ||
267 | 269 | ||
268 | if (lcd_type == 0) { | 270 | if (lcd_type == 0) { |
269 | if (on) { | 271 | if (on) { |
@@ -301,6 +303,8 @@ void lcd_enable(bool on) | |||
301 | lcd_write_dat(0x01); | 303 | lcd_write_dat(0x01); |
302 | } | 304 | } |
303 | } | 305 | } |
306 | |||
307 | lcd_enabled = on; | ||
304 | } | 308 | } |
305 | 309 | ||
306 | /* returns true if the lcd is enabled */ | 310 | /* returns true if the lcd is enabled */ |