Some gdisp drivers release_bus() calls are in the wrong spot compared to post_init_board()

This commit is contained in:
inmarket 2015-11-27 11:08:10 +10:00
parent a5cde14428
commit f16ee70272
2 changed files with 3 additions and 5 deletions

View File

@ -110,12 +110,12 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
write_cmd(g, SSD1331_DISPLAY_ON);
// Release the bus
release_bus(g);
// Finish Init
post_init_board(g);
// Release the bus
release_bus(g);
/* Initialise the GDISP structure */
g->g.Width = GDISP_SCREEN_WIDTH;
g->g.Height = GDISP_SCREEN_HEIGHT;

View File

@ -118,8 +118,6 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
write_cmd(g, 0xAF); // sleep mode OFF (display on)
write_cmd(g, 0x5C); // write to RAM
release_bus(g);
// Finish Init
post_init_board(g);