Skip to content

Commit

Permalink
feat(color): Long press SYS on main screen for radio setup (#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Jan 25, 2023
1 parent f7cdfdc commit 3d700f4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions radio/src/gui/colorlcd/view_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,20 @@ void ViewMain::onEvent(event_t event)
new ModelLabelsWindow();
break;

// TODO:
// - use BREAK instead
// - use LONG for "Tools" page
//
case EVT_KEY_FIRST(KEY_RADIO):
case EVT_KEY_BREAK(KEY_RADIO):
if (viewMainMenu) viewMainMenu->onCancel();
new RadioMenu();
break;

case EVT_KEY_LONG(KEY_RADIO):
{
killEvents(KEY_RADIO);
// Radio setup
auto m = new RadioMenu();
m->setCurrentTab(2);
}
break;

case EVT_KEY_FIRST(KEY_TELEM):
if (viewMainMenu) viewMainMenu->onCancel();
new ScreenMenu();
Expand Down

0 comments on commit 3d700f4

Please sign in to comment.