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 <noreply@anthropic.com>
This commit is contained in:
Kaj SchittecatandClaude Opus 5 committed 2026-08-22 23:51:32 +02:00
1 parent 9343e27bba
commit 6dd1e2514b
1 file changed
+5 -1
+5 -1
View File
@@ -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 {