Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error for ESP32-S3. [-Werror=misleading-indentation] #3697

Open
wailay opened this issue Apr 1, 2025 · 1 comment
Open

Compilation error for ESP32-S3. [-Werror=misleading-indentation] #3697

wailay opened this issue Apr 1, 2025 · 1 comment

Comments

@wailay
Copy link

wailay commented Apr 1, 2025

I am using the ESP32-S3 and getting a compilation error on this header file
TFT_eSPI/Processors/TFT_eSPI_ESP32_S3

components/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:559:25: error: this 'while' clause does not guard... [-Werror=misleading-indentation]      
  559 |                         while (*_spi_cmd & SPI_UPDATE);  \

Switching target back to esp32 and the compilation succeeds

Using vscode with ESP-IDF v5.4.0
TFT eSPI V2.5.43, GC9A01 driver with SPI

compiler:
xtensa-esp-elf\\esp-14.2.0_20241119\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe",

@wailay
Copy link
Author

wailay commented Apr 1, 2025

I have this pull request that fixes this issue: #3698

I suggest adding clang-format and keep the code properly formatted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant