summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/lcd-h300.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-h300.c b/firmware/drivers/lcd-h300.c
index 384490a29f..d84edd6b2e 100644
--- a/firmware/drivers/lcd-h300.c
+++ b/firmware/drivers/lcd-h300.c
@@ -313,6 +313,8 @@ void lcd_init_device(void)
313 * Gate output: VGH/VGL 313 * Gate output: VGH/VGL
314 * 6th bit not set*/ 314 * 6th bit not set*/
315 lcd_write_reg(R_DISP_CONTROL1, 0x0637); 315 lcd_write_reg(R_DISP_CONTROL1, 0x0637);
316 /* ok, the display is finally on */
317 display_on=true;
316} 318}
317 319
318void lcd_enable(bool on) 320void lcd_enable(bool on)
@@ -347,8 +349,9 @@ void lcd_enable(bool on)
347 349
348 /* halt negative volt ampl. */ 350 /* halt negative volt ampl. */
349 lcd_write_reg(R_POWER_CONTROL4,0x0000); 351 lcd_write_reg(R_POWER_CONTROL4,0x0000);
352 display_on=false;
350 } 353 }
351 display_on=on; 354 /* display_on = on */
352 } 355 }
353} 356}
354 357