add missing bus acquisition

ugfx_release_2.6
ergosys 2014-12-11 15:13:07 -08:00
parent ce9503a118
commit a43a9b25f6
1 changed files with 2 additions and 0 deletions

View File

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