diff options
Diffstat (limited to 'firmware/target/coldfire/mpio/hd200/lcd-hd200.c')
-rw-r--r-- | firmware/target/coldfire/mpio/hd200/lcd-hd200.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/lcd-hd200.c b/firmware/target/coldfire/mpio/hd200/lcd-hd200.c index 46509bc49a..8cb4449b57 100644 --- a/firmware/target/coldfire/mpio/hd200/lcd-hd200.c +++ b/firmware/target/coldfire/mpio/hd200/lcd-hd200.c | |||
@@ -63,11 +63,17 @@ int lcd_default_contrast(void) | |||
63 | 63 | ||
64 | void lcd_powersave(bool on) | 64 | void lcd_powersave(bool on) |
65 | { | 65 | { |
66 | /* What is the point of having else construct here? */ | ||
67 | if (on) | 66 | if (on) |
67 | /* enter power saving mode | ||
68 | * this turns off lcd without controller reset | ||
69 | * probably ~1mA saving | ||
70 | */ | ||
68 | lcd_write_command(LCD_SET_POWER_SAVE | 1); | 71 | lcd_write_command(LCD_SET_POWER_SAVE | 1); |
69 | else | 72 | else |
70 | lcd_write_command(LCD_SET_POWER_SAVE | 1); | 73 | /* leave lcd power saving mode |
74 | * no need to reset and initialize controller | ||
75 | */ | ||
76 | lcd_write_command(LCD_SET_POWER_SAVE | 0); | ||
71 | } | 77 | } |
72 | 78 | ||
73 | void lcd_set_contrast(int val) | 79 | void lcd_set_contrast(int val) |