Store host_id so that never reset works

This commit is contained in:
Scott Shawcroft 2020-06-26 12:32:56 -07:00
parent 03e5043af4
commit a9f257bcd6
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E

View File

@ -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