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:
1 parent
9343e27bba
commit
6dd1e2514b
1 file changed
+5
-1
@@ -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 {
|
||||
|
||||
|
||||
Reference in new issue
Block a user