added if-def
This commit is contained in:
@ -103,7 +103,7 @@ void StatusDisplay::redraw()
|
|||||||
tft.fillRect(0, tft.height()-6, tft.width(), 6, TFT_BLACK);
|
tft.fillRect(0, tft.height()-6, tft.width(), 6, TFT_BLACK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef FEATURE_LEDSTRIP
|
||||||
{
|
{
|
||||||
static bool blink_fill_with_black;
|
static bool blink_fill_with_black;
|
||||||
if (configs.ledstrip.enableVisualizeBlink.value && (espchrono::utc_clock::now().time_since_epoch() % 750ms < 375ms) && (blinkAnimation > 0))
|
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);
|
tft.fillRect(0, 0, tft.width(), 6, TFT_BLACK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
tft.setTextFont(2);
|
tft.setTextFont(2);
|
||||||
m_labelRawGas.redraw(raw_gas ? std::to_string(*raw_gas) : "?");
|
m_labelRawGas.redraw(raw_gas ? std::to_string(*raw_gas) : "?");
|
||||||
|
Reference in New Issue
Block a user