From 2816dc9c13f204234b613db5199d2c787a11f0d8 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 27 Feb 2007 09:06:30 +0000 Subject: Convert the radio menus to the new system. Change the way the presets are done (in code). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12500 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-ondio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/keymaps') diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c index 4274afc29e..401742b363 100644 --- a/apps/keymaps/keymap-ondio.c +++ b/apps/keymaps/keymap-ondio.c @@ -159,7 +159,7 @@ static const struct button_mapping button_context_keyboard[] = { LAST_ITEM_IN_LIST }; /* button_context_keyboard */ - +#if CONFIG_TUNER static const struct button_mapping button_context_radio[] = { { ACTION_FM_MENU, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE }, { ACTION_FM_RECORD_DBLPRE, BUTTON_MENU, BUTTON_NONE}, @@ -176,7 +176,7 @@ static const struct button_mapping button_context_radio[] = { LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) }; - +#endif const struct button_mapping* get_context_mapping( int context ) { switch( context ) @@ -207,9 +207,10 @@ const struct button_mapping* get_context_mapping( int context ) return button_context_recscreen; case CONTEXT_KEYBOARD: return button_context_keyboard; +#if CONFIG_TUNER case CONTEXT_FM: return button_context_radio; - +#endif case CONTEXT_LIST: case CONTEXT_MAINMENU: default: -- cgit v1.2.3