🩹 Fix TFT Color UI (#28140)

Followup to #28103
This commit is contained in:
Scott Lahteine
2025-10-25 15:56:55 -05:00
committed by GitHub
parent 51ce1a147d
commit 47727cf0ae
+2 -2
View File
@@ -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);
}