summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-06-20 21:17:08 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-20 21:17:08 +0200
commit28cfeed4c1a07262ac9d0abc4e9263f10971633a (patch)
tree2c317bb6b6dcc828c525d36e1b974c4b72c566d9
parent706e31b415bc5b8c191f2f6d225a09feed2cf53b (diff)
downloadrockbox-28cfeed.tar.gz
rockbox-28cfeed.tar.bz2
rockbox-28cfeed.zip
Agptek Rocker: Add missing lcd_set_active(true) in lcd_init_device()
This should fix problem introduced in 5c015ad resulting in not updating screen properly in wps. Change-Id: Ie36b6edfcfc7d425c84381402adae79d77fcc92f
-rw-r--r--firmware/target/hosted/agptek/lcd-agptek.c4
-rw-r--r--firmware/target/hosted/agptek/lcd-target.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/hosted/agptek/lcd-agptek.c b/firmware/target/hosted/agptek/lcd-agptek.c
index ff5a8146a2..4b3148da03 100644
--- a/firmware/target/hosted/agptek/lcd-agptek.c
+++ b/firmware/target/hosted/agptek/lcd-agptek.c
@@ -74,6 +74,10 @@ void lcd_init_device(void)
{
panicf("Cannot map framebuffer");
}
+
+#ifdef HAVE_LCD_ENABLE
+ lcd_set_active(true);
+#endif
}
#ifdef HAVE_LCD_SHUTDOWN
diff --git a/firmware/target/hosted/agptek/lcd-target.h b/firmware/target/hosted/agptek/lcd-target.h
index b6fcfdb98f..f7ed743aef 100644
--- a/firmware/target/hosted/agptek/lcd-target.h
+++ b/firmware/target/hosted/agptek/lcd-target.h
@@ -27,4 +27,6 @@
extern fb_data *framebuffer; /* see lcd-agptek.c */
#define LCD_FRAMEBUF_ADDR(col, row) (framebuffer + (row)*LCD_WIDTH + (col))
+
+extern void lcd_set_active(bool active);
#endif /* __LCD_TARGET_H__ */