Update TFT_eSPI_RP2040.c

This commit is contained in:
Bodmer 2022-01-02 19:50:04 +00:00 committed by GitHub
parent 8a2398451b
commit c725f201ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ bool TFT_eSPI::initDMA(bool ctrl_cs)
channel_config_set_transfer_data_size(&dma_tx_config, DMA_SIZE_16);
#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
channel_config_set_dreq(&dma_tx_config, pio_get_dreq(pio, pio_sm, true));
#endif