diff options
author | Dave Chapman <dave@dchapman.com> | 2005-09-22 18:36:02 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-09-22 18:36:02 +0000 |
commit | 025873b3acedd0fbc58b89f5d4a4e9437522a9ab (patch) | |
tree | a3fed7fe1cbfbdf5e56b3dcfb4e7604cbf7b66fc /apps | |
parent | ccdae5dbe44385f580e16a6a0754041bf075f557 (diff) |
Enable FM presets for iriver. Add a preset via the "add" option in the radio menu, and press ON/PLAY button to bring up the list of presets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7540 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/radio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index b9de384707..895c7872e9 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c @@ -71,6 +71,7 @@ #define FM_PRESET_ACTION BUTTON_F3 #elif CONFIG_KEYPAD == IRIVER_H100_PAD #define FM_MENU BUTTON_MODE +#define FM_PRESET BUTTON_ON #define FM_STOP BUTTON_OFF #define FM_EXIT_PRE BUTTON_SELECT #define FM_EXIT (BUTTON_SELECT | BUTTON_REL) @@ -969,8 +970,11 @@ bool radio_menu(void) bool result; static const struct menu_item items[] = { -#if CONFIG_KEYPAD == ONDIO_PAD /* Ondio has no key for presets, put it in menu */ +/* Add functions not accessible via buttons */ +#ifndef FM_PRESET { ID2P(LANG_FM_BUTTONBAR_PRESETS), handle_radio_presets }, +#endif +#ifndef FM_PRESET_ADD { ID2P(LANG_FM_BUTTONBAR_ADD) , radio_add_preset }, #endif { monomode_menu_string , toggle_mono_mode }, |