Fix for ST7735 driver
This commit is contained in:
parent
013bac84ce
commit
891b78a62c
1 changed files with 5 additions and 5 deletions
|
@ -198,7 +198,7 @@ static const unsigned char
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static void execute_cmds (const uint8_t *addr) {
|
static void execute_cmds(GDisplay *g, const uint8_t *addr) {
|
||||||
|
|
||||||
unsigned int cmds = *addr++;
|
unsigned int cmds = *addr++;
|
||||||
while (cmds--) {
|
while (cmds--) {
|
||||||
|
@ -231,7 +231,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
|
|
||||||
// Get the bus for the following initialisation commands
|
// Get the bus for the following initialisation commands
|
||||||
acquire_bus(g);
|
acquire_bus(g);
|
||||||
execute_cmds (init_cmds);
|
execute_cmds(g, init_cmds);
|
||||||
release_bus(g);
|
release_bus(g);
|
||||||
|
|
||||||
// Finish Init
|
// Finish Init
|
||||||
|
|
Loading…
Add table
Reference in a new issue