From d9a0f83ff262e2875ee80a2848eaeefc3d4f9433 Mon Sep 17 00:00:00 2001 From: Wail Ayad Date: Mon, 31 Mar 2025 22:38:19 -0400 Subject: [PATCH] fixing indentation and compilation error for esp32-s3 --- Processors/TFT_eSPI_ESP32_S3.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Processors/TFT_eSPI_ESP32_S3.h b/Processors/TFT_eSPI_ESP32_S3.h index c1a9e101..038dd02f 100644 --- a/Processors/TFT_eSPI_ESP32_S3.h +++ b/Processors/TFT_eSPI_ESP32_S3.h @@ -553,12 +553,12 @@ SPI3_HOST = 2 *_spi_cmd = SPI_USR; \ while (*_spi_cmd & SPI_USR); #else - #define TFT_WRITE_BITS(D, B) *_spi_mosi_dlen = B-1; \ - *_spi_w = D; \ - *_spi_cmd = SPI_UPDATE; \ - while (*_spi_cmd & SPI_UPDATE); \ - *_spi_cmd = SPI_USR; \ - while (*_spi_cmd & SPI_USR); + #define TFT_WRITE_BITS(D, B) *_spi_mosi_dlen = B-1; \ + *_spi_w = D; \ + *_spi_cmd = SPI_UPDATE; \ + while (*_spi_cmd & SPI_UPDATE); \ + *_spi_cmd = SPI_USR; \ + while (*_spi_cmd & SPI_USR); #endif // Write 8 bits #define tft_Write_8(C) TFT_WRITE_BITS(C, 8) @@ -575,7 +575,7 @@ SPI3_HOST = 2 #define tft_Write_16N(C) *_spi_mosi_dlen = 16-1; \ *_spi_w = ((C)<<8 | (C)>>8); \ *_spi_cmd = SPI_UPDATE; \ - while (*_spi_cmd & SPI_UPDATE); \ + while (*_spi_cmd & SPI_UPDATE); \ *_spi_cmd = SPI_USR; #endif @@ -609,4 +609,4 @@ SPI3_HOST = 2 // Concatenate a byte sequence A,B,C,D to CDAB, P is a uint8_t pointer #define DAT8TO32(P) ( (uint32_t)P[0]<<8 | P[1] | P[2]<<24 | P[3]<<16 ) -#endif // Header end +#endif // Header end \ No newline at end of file