From f974cb2a4fbe2a93607a4737c3e08a6807f386e0 Mon Sep 17 00:00:00 2001 From: Florent de Lamotte Date: Fri, 5 Sep 2025 15:32:02 +0200 Subject: [PATCH] ui: ENTER on SENSORS page toggles gps --- examples/companion_radio/ui-new/UITask.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index efa31332..93a7da1b 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -307,6 +307,10 @@ public: } return true; } + if (c == KEY_ENTER && _page == HomePage::SENSORS) { + _task->toggleGPS(); + return true; + } if (c == KEY_ENTER && _page == HomePage::SHUTDOWN) { _shutdown_init = true; // need to wait for button to be released return true;