From 6dd1e2514b8366315efa385bf7bd232ceedb8dd2 Mon Sep 17 00:00:00 2001 From: Kaj Schittecat Date: Sat, 22 Aug 2026 23:51:32 +0200 Subject: [PATCH] console: the exit bridge must not sit behind CAP_TOUCH The extern for consoleHostRebootToUi went inside the CAP_TOUCH block, so the M9 (console, no touchscreen) stopped compiling. Every board with a console can leave it; the declaration follows CAP_CONSOLE's reach, not the panel's. Co-Authored-By: Claude Opus 5 --- src/ui-touch/ConsoleUI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui-touch/ConsoleUI.cpp b/src/ui-touch/ConsoleUI.cpp index 99e89ab..e4a078f 100644 --- a/src/ui-touch/ConsoleUI.cpp +++ b/src/ui-touch/ConsoleUI.cpp @@ -50,10 +50,14 @@ extern int luaHostDiscoverAt(int idx, char* pk_hex, size_t pk_cap, char* name, // Board touch driver, read directly. lvglTouchRead() is only an adapter that // feeds LVGL, so there is nothing to unpick here: the driver polls either way. extern bool heltecV4CapTouchGetLive(uint16_t* x, uint16_t* y); +#endif + +// UNGATED on purpose: every board with a console can leave it, so this must not +// sit behind a board capability (it was inside CAP_TOUCH and the M9 stopped +// building). #if defined(ESP32) extern void consoleHostRebootToUi(); // clears the pref, flushes it, reboots #endif -#endif namespace {