Some gdisp drivers release_bus() calls are in the wrong spot compared to post_init_board()
This commit is contained in:
parent
a5cde14428
commit
f16ee70272
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user