refactor(DisplayDriverTFT): simplify alert rendering logic for better performance

This commit is contained in:
2026-02-20 03:02:13 -08:00
parent b68d36bb85
commit 688b1905e5
2 changed files with 25 additions and 29 deletions

View File

@@ -44,9 +44,8 @@ private:
// Touch hint for alert - progressive fill from bottom
bool _alertTouchDown = false;
uint32_t _alertTouchStartMs = 0;
uint32_t _lastAlertDrawMs = 0;
bool _lastAlertPhase = false; // tracks bright/dark phase for 2-color alert
static constexpr uint32_t ALERT_FILL_DURATION_MS = 3000;
static constexpr uint32_t ALERT_DRAW_INTERVAL_MS = 333; // ~3fps
// Touch tracking for press/release detection
bool _touchWasPressed = false;