summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index fa083f20f9..4e6c52ea84 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -952,26 +952,25 @@ int radio_menu_cb(int key, int m)
952/* main menu of the radio screen */ 952/* main menu of the radio screen */
953bool radio_menu(void) 953bool radio_menu(void)
954{ 954{
955 struct menu_item items[5];
956 int m; 955 int m;
957 bool result; 956 bool result;
958 957
959 m = menu_init(items, 0, radio_menu_cb, NULL, NULL, NULL); 958 static const struct menu_item items[] = {
960
961#if CONFIG_KEYPAD == ONDIO_PAD /* Ondio has no key for presets, put it in menu */ 959#if CONFIG_KEYPAD == ONDIO_PAD /* Ondio has no key for presets, put it in menu */
962 /* fixme: make real string table entries */ 960 { ID2P(LANG_FM_BUTTONBAR_PRESETS), handle_radio_presets },
963 menu_insert(m, -1, ID2P(LANG_FM_BUTTONBAR_PRESETS), handle_radio_presets); 961 { ID2P(LANG_FM_BUTTONBAR_ADD) , radio_add_preset },
964 menu_insert(m, -1, ID2P(LANG_FM_BUTTONBAR_ADD), radio_add_preset);
965#endif
966 create_monomode_menu();
967 menu_insert(m, -1, monomode_menu_string, toggle_mono_mode);
968 menu_insert(m, -1, ID2P(LANG_SOUND_SETTINGS), sound_menu);
969#ifndef SIMULATOR
970#if CONFIG_HWCODEC != MASNONE
971 menu_insert(m, -1, ID2P(LANG_RECORDING_SETTINGS), fm_recording_settings);
972#endif 962#endif
963 { monomode_menu_string , toggle_mono_mode },
964 { ID2P(LANG_SOUND_SETTINGS) , sound_menu },
965#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE)
966 { ID2P(LANG_RECORDING_SETTINGS) , fm_recording_settings},
973#endif 967#endif
968 };
969
970 create_monomode_menu();
974 971
972 m = menu_init(items, sizeof(items) / sizeof(*items),
973 radio_menu_cb, NULL, NULL, NULL);
975 result = menu_run(m); 974 result = menu_run(m);
976 menu_exit(m); 975 menu_exit(m);
977 return result; 976 return result;