aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorergosys <ergosys@gmail.com>2014-12-11 15:13:07 -0800
committerergosys <ergosys@gmail.com>2014-12-12 16:21:08 -0800
commita43a9b25f6f638c68c2a5612785b5e614f33ff1f (patch)
treed103ec1a5fdc3943d7dfb3efea55c08a42611779 /drivers
parentce9503a1187c8ab48bd32da24cbe95be425dd533 (diff)
downloaduGFX-a43a9b25f6f638c68c2a5612785b5e614f33ff1f.tar.gz
uGFX-a43a9b25f6f638c68c2a5612785b5e614f33ff1f.tar.bz2
uGFX-a43a9b25f6f638c68c2a5612785b5e614f33ff1f.zip
add missing bus acquisition
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
index abea8365..d3f8ae2b 100644
--- a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
+++ b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
@@ -142,10 +142,12 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
if (!(g->flags & GDISP_FLG_NEEDFLUSH))
return;
+ acquire_bus(g);
write_cmd(g, SSD1306_SETSTARTLINE | 0);
for(i=0; i < GDISP_SCREEN_HEIGHT/8 * SSD1306_PAGE_WIDTH; i+=SSD1306_PAGE_WIDTH)
write_data(g, RAM(g)+i, SSD1306_PAGE_WIDTH);
+ release_bus(g);
}
#endif