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
This commit is contained in:
Marcin Bukat 2018-06-20 21:17:08 +02:00
parent 706e31b415
commit 28cfeed4c1
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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__ */