Skip to content

Commit 8d1fbcf

Browse files
arktrinC47D
authored andcommitted
replace hardcoded SPI DMA parameter
1 parent 8cbbc29 commit 8d1fbcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lvgl_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ bool lvgl_spi_driver_init(int host,
176176

177177
ESP_LOGI(TAG, "Initializing SPI bus...");
178178
#if defined (CONFIG_IDF_TARGET_ESP32C3)
179-
dma_channel = 3;
179+
dma_channel = SPI_DMA_CH_AUTO;
180180
#endif
181181
esp_err_t ret = spi_bus_initialize(host, &buscfg, (spi_dma_chan_t)dma_channel);
182182
assert(ret == ESP_OK);

0 commit comments

Comments
 (0)