From 9c9347df23be399153345dc34713443bf084199e Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 17 Aug 2020 14:06:31 -0700 Subject: [PATCH] don't reference tft libs on devices that don't have it --- src/graphics/TFT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/TFT.cpp b/src/graphics/TFT.cpp index 3d9ea46e6..7e2afb58b 100644 --- a/src/graphics/TFT.cpp +++ b/src/graphics/TFT.cpp @@ -1,10 +1,10 @@ #include "configuration.h" +#ifdef ST7735_CS + #include #include // Graphics and font library for ST7735 driver chip -#ifdef ST7735_CS - TFT_eSPI tft = TFT_eSPI(); // Invoke library, pins defined in User_Setup.h void TFTinit()