From 005e4ff5a60c1048c583e6cb6c74bd3ac899ffcc Mon Sep 17 00:00:00 2001 From: "Michael A. Cojocari" Date: Thu, 24 Sep 2026 11:38:26 -0400 Subject: [PATCH] fix(tdisplay-p4): show the real web UI port (8765) on esp-hosted builds WEB_UI_PORT_STR was 5000 on every P4 build, from the ESP-AT days when the single AT listener shared the companion port. The esp-hosted build serves the web UI on WS_PORT (8765) like the other boards, so the VNC, Remote, Files, terminal and remote-placeholder addresses pointed at the wrong port. Keep 5000 only for WADA_P4_LEGACY_AT builds; other boards were already correct. Co-Authored-By: Claude Opus 5.5 --- src/ui-touch/UITask.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui-touch/UITask.cpp b/src/ui-touch/UITask.cpp index 9255b3f8..db82ae7f 100644 --- a/src/ui-touch/UITask.cpp +++ b/src/ui-touch/UITask.cpp @@ -7,9 +7,10 @@ #include "device_caps.h" // CAP_* capability flags (replaces device-name #ifs) // Port the browser-facing web UI (VNC mirror / remote / terminal viewer page) listens on. -// The T-Display P4's ESP-AT stack allows ONE listening port, so the web UI shares the -// companion TCP port behind a first-byte router (MultiTransportCompanionInterface). -#if defined(HAS_TDISPLAY_P4) +// A T-Display P4 on the legacy ESP-AT C6 stack gets ONE listening port, so there the web UI +// shares the companion TCP port behind a first-byte router (MultiTransportCompanionInterface). +// The esp-hosted P4 build listens on WS_PORT like every other board. +#if defined(HAS_TDISPLAY_P4) && !TDP4_C6_HOSTED #define WEB_UI_PORT_STR "5000" #else #define WEB_UI_PORT_STR "8765"