From 47727cf0ae4a0914b5791ee653e2f7646f40b272 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 25 Oct 2025 15:56:55 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20TFT=20Color=20UI=20(#28140?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followup to #28103 --- Marlin/src/HAL/STM32/tft/tft_fsmc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/HAL/STM32/tft/tft_fsmc.cpp b/Marlin/src/HAL/STM32/tft/tft_fsmc.cpp index faf7d2b048..70caef6778 100644 --- a/Marlin/src/HAL/STM32/tft/tft_fsmc.cpp +++ b/Marlin/src/HAL/STM32/tft/tft_fsmc.cpp @@ -182,7 +182,7 @@ void TFT_FSMC::abort() { } void TFT_FSMC::transmitDMA(uint32_t memoryIncrease, uint16_t *data, uint16_t count) { - if (DMAtx.Init.PeriphInc != memoryIncrease) { + if (!__IS_DMA_CONFIGURED(&DMAtx) || DMAtx.Init.PeriphInc != memoryIncrease) { DMAtx.Init.PeriphInc = memoryIncrease; HAL_DMA_Init(&DMAtx); } @@ -191,7 +191,7 @@ void TFT_FSMC::transmitDMA(uint32_t memoryIncrease, uint16_t *data, uint16_t cou } void TFT_FSMC::transmit(uint32_t memoryIncrease, uint16_t *data, uint16_t count) { - if (DMAtx.Init.PeriphInc != memoryIncrease) { + if (!__IS_DMA_CONFIGURED(&DMAtx) || DMAtx.Init.PeriphInc != memoryIncrease) { DMAtx.Init.PeriphInc = memoryIncrease; HAL_DMA_Init(&DMAtx); }