Skip to content

Commit

Permalink
fixes compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
kdschlosser committed May 21, 2024
1 parent ca43609 commit ebd3e6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext_mod/lcd_bus/common_include/spi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

void (*send_cmd)(mp_lcd_spi_bus_obj_t *self, int lcd_cmd);
void (*send_param)(mp_lcd_spi_bus_obj_t *self, void *param, size_t param_size);

};

#else
Expand Down Expand Up @@ -87,6 +88,7 @@
void (*send_cmd)(mp_lcd_spi_bus_obj_t *self, int lcd_cmd);
void (*send_param)(mp_lcd_spi_bus_obj_t *self, void *param, size_t param_size);

int host;
};

#endif
Expand Down
1 change: 1 addition & 0 deletions ext_mod/lcd_bus/common_src/spi_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
self->callback = mp_const_none;

self->bus_handle = spi;
self->host = (int)args[ARG_host].u_int;

if (args[ARG_cs].u_obj != mp_const_none) {
self->panel_io_config.cs_gpio_num = (mp_hal_pin_obj_t)mp_hal_get_pin_obj(args[ARG_cs].u_obj);
Expand Down

0 comments on commit ebd3e6b

Please sign in to comment.