Fix for ST7735 driver

release/v2.9
inmarket 2018-02-24 11:31:34 +10:00
parent 013bac84ce
commit 891b78a62c
1 changed files with 5 additions and 5 deletions

View File

@ -198,7 +198,7 @@ static const unsigned char
#endif
static void execute_cmds (const uint8_t *addr) {
static void execute_cmds(GDisplay *g, const uint8_t *addr) {
unsigned int cmds = *addr++;
while (cmds--) {
@ -231,7 +231,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
// Get the bus for the following initialisation commands
acquire_bus(g);
execute_cmds (init_cmds);
execute_cmds(g, init_cmds);
release_bus(g);
// Finish Init