From 0bad8c7acc3a31c1c04e99e151372cff4b44383c Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 20 Feb 2023 17:25:58 +0000 Subject: [PATCH] Fix #2425 --- TFT_eSPI.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 1edf59f..f3858d3 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -5950,10 +5950,12 @@ void TFT_eSPI::getSetup(setup_t &tft_settings) #ifdef SPI_READ_FREQUENCY tft_settings.tft_rd_freq = SPI_READ_FREQUENCY/100000; #endif - #ifdef TFT_SPI_PORT - tft_settings.port = TFT_SPI_PORT; - #else - tft_settings.port = 255; + #ifndef GENERIC_PROCESSOR + #ifdef TFT_SPI_PORT + tft_settings.port = TFT_SPI_PORT; + #else + tft_settings.port = 255; + #endif #endif #ifdef RP2040_PIO_SPI tft_settings.interface = 0x10;