void onLongMenuPress(const char *result) { if (result == STR_VIEW_CHANNELS) { pushMenu(menuChannelsView); } else if (result == STR_VIEW_NOTES) { pushModelNotes(); } }
void onMainViewMenu(const char *result) { if (result == STR_RESET_TIMER1) { timerReset(0); } else if (result == STR_RESET_TIMER2) { timerReset(1); } #if TIMERS > 2 else if (result == STR_RESET_TIMER3) { timerReset(2); } #endif #if defined(CPUARM) else if (result == STR_VIEW_NOTES) { pushModelNotes(); } else if (result == STR_RESET_SUBMENU) { MENU_ADD_ITEM(STR_RESET_FLIGHT); MENU_ADD_ITEM(STR_RESET_TIMER1); MENU_ADD_ITEM(STR_RESET_TIMER2); MENU_ADD_ITEM(STR_RESET_TIMER3); #if defined(FRSKY) MENU_ADD_ITEM(STR_RESET_TELEMETRY); #endif } #endif #if defined(FRSKY) else if (result == STR_RESET_TELEMETRY) { telemetryReset(); } #endif else if (result == STR_RESET_FLIGHT) { flightReset(); } else if (result == STR_STATISTICS) { chainMenu(menuStatisticsView); } #if defined(CPUARM) else if (result == STR_ABOUT_US) { chainMenu(menuAboutView); } #endif }