replace hardcoded SPI DMA parameter

This commit is contained in:
arktrin 2021-12-20 12:38:42 +03:00 committed by C47D
parent b9377200a6
commit a2a13f1a5f

View file

@ -204,7 +204,7 @@ bool lvgl_spi_driver_init(int host,
ESP_LOGI(TAG, "Initializing SPI bus...");
#if defined (CONFIG_IDF_TARGET_ESP32C3)
dma_channel = 3;
dma_channel = SPI_DMA_CH_AUTO;
#endif
esp_err_t ret = spi_bus_initialize(host, &buscfg, (spi_dma_chan_t)dma_channel);