Unverified Commit c725f201 authored by Bodmer's avatar Bodmer Committed by GitHub

Update TFT_eSPI_RP2040.c

parent 8a239845
...@@ -632,7 +632,7 @@ bool TFT_eSPI::initDMA(bool ctrl_cs) ...@@ -632,7 +632,7 @@ bool TFT_eSPI::initDMA(bool ctrl_cs)
channel_config_set_transfer_data_size(&dma_tx_config, DMA_SIZE_16); channel_config_set_transfer_data_size(&dma_tx_config, DMA_SIZE_16);
#if !defined (RP2040_PIO_INTERFACE) #if !defined (RP2040_PIO_INTERFACE)
channel_config_set_dreq(&dma_tx_config, spi_get_dreq(SPI_X, true)); cchannel_config_set_dreq(&dma_tx_config, spi_get_index(SPI_X) ? DREQ_SPI1_TX : DREQ_SPI0_TX);
#else #else
channel_config_set_dreq(&dma_tx_config, pio_get_dreq(pio, pio_sm, true)); channel_config_set_dreq(&dma_tx_config, pio_get_dreq(pio, pio_sm, true));
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment