Skip to content

Commit 8fdaace

Browse files
committed
ui: refresh sensors on gps toggle
1 parent f974cb2 commit 8fdaace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/companion_radio/ui-new/UITask.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ class HomeScreen : public UIScreen {
309309
}
310310
if (c == KEY_ENTER && _page == HomePage::SENSORS) {
311311
_task->toggleGPS();
312+
next_sensors_refresh=0;
312313
return true;
313314
}
314315
if (c == KEY_ENTER && _page == HomePage::SHUTDOWN) {

0 commit comments

Comments
 (0)