From 317ce97e598c004d158b87d01940a31acfb3eced Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 30 Oct 2023 23:56:20 +0000 Subject: [PATCH] Fix #2942 --- Processors/TFT_eSPI_STM32.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Processors/TFT_eSPI_STM32.h b/Processors/TFT_eSPI_STM32.h index 82a829a6..10915821 100644 --- a/Processors/TFT_eSPI_STM32.h +++ b/Processors/TFT_eSPI_STM32.h @@ -1027,15 +1027,18 @@ #else +/* Remove patch to fix #2933 #if defined(ST7789_DRIVER) || defined(ST7789_2_DRIVER) // Temporary workaround for issue #510 part 2 #define tft_Write_8(C) spi.transfer(C) #else +*/ #define tft_Write_8(C) \ { spiBuffer[0] = C; \ HAL_SPI_Transmit(&spiHal, spiBuffer, 1, 10); delayMicroseconds(1);} +/* Remove patch to fix #2933 #endif - +*/ #define tft_Write_16(C) \ { spiBuffer[0] = (C)>>8; spiBuffer[1] = C; \ HAL_SPI_Transmit(&spiHal, spiBuffer, 2, 10); }