We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71c41cd + 1a99ce5 commit 7df172bCopy full SHA for 7df172b
ports/espressif/common-hal/busio/SPI.c
@@ -93,7 +93,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
93
mp_raise_ValueError(translate("All SPI peripherals are in use"));
94
}
95
96
- esp_err_t result = spi_bus_initialize(self->host_id, &bus_config, self->host_id /* dma channel */);
+ esp_err_t result = spi_bus_initialize(self->host_id, &bus_config, SPI_DMA_CH_AUTO);
97
if (result == ESP_ERR_NO_MEM) {
98
mp_raise_msg(&mp_type_MemoryError, translate("ESP-IDF memory allocation failed"));
99
} else if (result == ESP_ERR_INVALID_ARG) {
0 commit comments