Skip to content

Commit 905b783

Browse files
committed
fixes SPIBus invalid argument
1 parent dd84904 commit 905b783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext_mod/lcd_bus/esp32_src/spi_bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ mp_lcd_err_t spi_init(mp_obj_t obj, uint16_t width, uint16_t height, uint8_t bpp
271271
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("%d(spi_bus_initialize)"), ret);
272272
}
273273

274-
ret = esp_lcd_new_panel_io_spi(self->bus_handle, &self->panel_io_config, &self->panel_io_handle.panel_io);
274+
ret = esp_lcd_new_panel_io_spi(self->bus_handle, &self->panel_io_config, self->panel_io_handle.panel_io);
275275
if (ret != 0) {
276276
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("%d(esp_lcd_new_panel_io_spi)"), ret);
277277
}

0 commit comments

Comments
 (0)