diff --git a/Processors/TFT_eSPI_Generic.c b/Processors/TFT_eSPI_Generic.c index a2464c41..14eda108 100644 --- a/Processors/TFT_eSPI_Generic.c +++ b/Processors/TFT_eSPI_Generic.c @@ -7,10 +7,10 @@ //////////////////////////////////////////////////////////////////////////////////////// // Select the SPI port to use -#ifndef SPICOM - SPIClass& spi = SPI; +#ifdef TFT_SPI_PORT + SPIClass& spi = TFT_SPI_PORT; #else - SPIClass& spi = SPICOM; + SPIClass& spi = SPI; #endif ////////////////////////////////////////////////////////////////////////////////////////