From bd8c32b856c9348e42f9c586fead3b30eaae6cd1 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Wed, 5 Jan 2022 02:47:42 +0100 Subject: [PATCH] added if-def --- main/displays/statusdisplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/displays/statusdisplay.cpp b/main/displays/statusdisplay.cpp index 3fc9360..4467b2c 100644 --- a/main/displays/statusdisplay.cpp +++ b/main/displays/statusdisplay.cpp @@ -103,7 +103,7 @@ void StatusDisplay::redraw() tft.fillRect(0, tft.height()-6, tft.width(), 6, TFT_BLACK); } } - +#ifdef FEATURE_LEDSTRIP { static bool blink_fill_with_black; if (configs.ledstrip.enableVisualizeBlink.value && (espchrono::utc_clock::now().time_since_epoch() % 750ms < 375ms) && (blinkAnimation > 0)) @@ -121,6 +121,7 @@ void StatusDisplay::redraw() tft.fillRect(0, 0, tft.width(), 6, TFT_BLACK); } } +#endif tft.setTextFont(2); m_labelRawGas.redraw(raw_gas ? std::to_string(*raw_gas) : "?");