diff options
Diffstat (limited to 'drivers/gdisp/ILI9320/gdisp_lld.c')
-rw-r--r-- | drivers/gdisp/ILI9320/gdisp_lld.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gdisp/ILI9320/gdisp_lld.c b/drivers/gdisp/ILI9320/gdisp_lld.c index 6d7815cb..a18c2d82 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld.c +++ b/drivers/gdisp/ILI9320/gdisp_lld.c @@ -199,6 +199,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { LLDSPEC void gdisp_lld_write_start(GDisplay *g) { acquire_bus(g); set_viewport(g); + #if !GDISP_HARDWARE_STREAM_POS + set_cursor(g); + #endif } LLDSPEC void gdisp_lld_write_color(GDisplay *g) { write_data(g, g->p.color); @@ -206,9 +209,11 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { LLDSPEC void gdisp_lld_write_stop(GDisplay *g) { release_bus(g); } - LLDSPEC void gdisp_lld_write_pos(GDisplay *g) { - set_cursor(g); - } + #if GDISP_HARDWARE_STREAM_POS + LLDSPEC void gdisp_lld_write_pos(GDisplay *g) { + set_cursor(g); + } + #endif #endif #if GDISP_HARDWARE_STREAM_READ |