From 6f4cf86834cec614f7d4b6cdea5aa9645783b289 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sat, 5 Mar 2022 00:22:32 +0000 Subject: [PATCH] Make compatible with existing port define --- Processors/TFT_eSPI_Generic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ////////////////////////////////////////////////////////////////////////////////////////