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 <noreply@anthropic.com>
This commit is contained in:
Michael A. CojocariandClaude Opus 5.5 committed 2026-09-24 15:28:50 -04:00
1 parent 36f96e0b7c
commit 005e4ff5a6
1 file changed
+4 -3
+4 -3
View File
@@ -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"