Skip to content

Commit f974cb2

Browse files
committed
ui: ENTER on SENSORS page toggles gps
1 parent 2d65122 commit f974cb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/companion_radio/ui-new/UITask.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,10 @@ class HomeScreen : public UIScreen {
307307
}
308308
return true;
309309
}
310+
if (c == KEY_ENTER && _page == HomePage::SENSORS) {
311+
_task->toggleGPS();
312+
return true;
313+
}
310314
if (c == KEY_ENTER && _page == HomePage::SHUTDOWN) {
311315
_shutdown_init = true; // need to wait for button to be released
312316
return true;

0 commit comments

Comments
 (0)