added if-def

This commit is contained in:
CommanderRedYT
2022-01-05 02:47:42 +01:00
parent 6f7fb5817d
commit bd8c32b856

View File

@ -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) : "?");