From ff3a8882124a6128ca25a2a89483b187538ec898 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sat, 24 Apr 2021 09:54:13 +0100 Subject: [PATCH] Fix error --- Processors/TFT_eSPI_RP2040.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/TFT_eSPI_RP2040.c b/Processors/TFT_eSPI_RP2040.c index 66288e9..fbcbfe2 100644 --- a/Processors/TFT_eSPI_RP2040.c +++ b/Processors/TFT_eSPI_RP2040.c @@ -310,7 +310,7 @@ void TFT_eSPI::pushPixelsDMA(uint16_t* image, uint32_t len) dmaWait(); channel_config_set_bswap(&dma_tx_config, !_swapBytes); - dma_channel_configure(dma_tx_channel, &dma_tx_config, &spi_get_hw(spi0)->dr, (uint16_t*)buffer, len, true); + dma_channel_configure(dma_tx_channel, &dma_tx_config, &spi_get_hw(spi0)->dr, (uint16_t*)image, len, true); } /***************************************************************************************