Skip to content

Commit 377ede3

Browse files
committed
works for SPI bus
1 parent c7abdd0 commit 377ede3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext_mod/lcd_bus/common_src/spi_bus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
*/
237237

238238
// we take the transfer pointer from the bus inside the existing device
239+
self->bus_handle = MP_OBJ_FROM_PTR(self->spi_bus);
239240
self->panel_io_config.spi_transfer = ((mp_machine_spi_p_t *)MP_OBJ_TYPE_GET_SLOT(&machine_spi_type, protocol))->transfer;
240241

241242
return LCD_OK;

0 commit comments

Comments
 (0)