Skip to content

Commit f87b886

Browse files
committed
working on being able to share the SPI Bus
1 parent 0fe43c6 commit f87b886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropy_updates/esp32/machine_hw_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ mp_obj_t machine_hw_spi_make_new(const mp_obj_type_t *type, size_t n_args, size_
469469
};
470470

471471
spi_device_handle_t spi_device = NULL;
472-
ret = spi_bus_add_device(spi_host_device, &devcfg, &spi_device);
472+
ret = spi_bus_add_device(self->spi_bus->host, &devcfg, &spi_device);
473473
self->user_data = spi_device;
474474

475475
switch (ret) {

0 commit comments

Comments
 (0)