fix(DisplayDriverTFT): right-align WiFi indicator in header

This commit is contained in:
2026-02-20 00:49:57 -08:00
parent 9c8f67dccb
commit fd04dea8dd
2 changed files with 14 additions and 2 deletions

View File

@@ -222,8 +222,10 @@ void DisplayDriverTFT::drawDashboard(const ScreenState& st) {
_tft.print("KLUBHAUS");
// WiFi indicator - right aligned in header
_tft.setCursor(dispW - 50, 20);
_tft.print(st.wifiSsid.length() > 0 ? "WiFi:ON" : "WiFi:OFF");
const char* wifiText = st.wifiSsid.length() > 0 ? "WiFi:ON" : "WiFi:OFF";
int wifiW = _tft.textWidth(wifiText);
_tft.setCursor(dispW - wifiW - 10, 20);
_tft.print(wifiText);
// Get tile layouts from library helper
int tileCount = display.calculateDashboardLayouts(STYLE_HEADER_HEIGHT, STYLE_TILE_GAP);

View File

@@ -133,8 +133,18 @@ clean:
rm -rf boards/esp32-32e/build
rm -rf boards/esp32-32e-4/build
rm -rf boards/esp32-s3-lcd-43/build
rm -f .board-last
echo "[OK] Build artifacts cleaned"
# Clean temporary files (monitor logs, FIFOs, state files)
clean-temp:
#!/usr/bin/env bash
rm -f /tmp/doorbell-esp32-32e.jsonl /tmp/doorbell-esp32-32e-state.json /tmp/doorbell-esp32-32e-cmd.fifo
rm -f /tmp/doorbell-esp32-32e-4.jsonl /tmp/doorbell-esp32-32e-4-state.json /tmp/doorbell-esp32-32e-4-cmd.fifo
rm -f /tmp/doorbell-esp32-s3-lcd-43.jsonl /tmp/doorbell-esp32-s3-lcd-43-state.json /tmp/doorbell-esp32-s3-lcd-43-cmd.fifo
rm -f .board-last
echo "[OK] Temp files cleaned"
# Clean Arduino cache
arduino-clean:
#!/usr/bin/env bash