Store host_id so that never reset works
This commit is contained in:
parent
03e5043af4
commit
a9f257bcd6
@ -160,6 +160,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
|
|||||||
self->clock_pin = clock;
|
self->clock_pin = clock;
|
||||||
self->MOSI_pin = mosi;
|
self->MOSI_pin = mosi;
|
||||||
self->MISO_pin = miso;
|
self->MISO_pin = miso;
|
||||||
|
self->host_id = host_id;
|
||||||
|
|
||||||
spi_bus_lock_dev_config_t config = { .flags = 0 };
|
spi_bus_lock_dev_config_t config = { .flags = 0 };
|
||||||
// The returned lock is stored in the bus lock but must be freed separately with
|
// The returned lock is stored in the bus lock but must be freed separately with
|
||||||
|
Loading…
Reference in New Issue
Block a user