diff --git a/boards/esp32-32e-4/DisplayDriverTFT.cpp b/boards/esp32-32e-4/DisplayDriverTFT.cpp index 54f1573..e5e1b0a 100644 --- a/boards/esp32-32e-4/DisplayDriverTFT.cpp +++ b/boards/esp32-32e-4/DisplayDriverTFT.cpp @@ -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); diff --git a/justfile b/justfile index 821babf..19bf84f 100644 --- a/justfile +++ b/justfile @@ -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