summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-12-15 01:11:19 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-12-15 01:11:19 +0000
commita4b15a4f1ff03e2a7ff33b78ee59ba4540a39ff9 (patch)
treef7731cb2ba34656f53aa325a8d681cfdad6e7186 /apps/recorder/radio.c
parentc3387e545d84393dd47a0e49924334e751536de4 (diff)
H300 FM radio support, with help from Peter D'Hoye
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8237 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 2ed2a68ef8..5e40425d30 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -78,7 +78,7 @@
#define FM_PRESET_ADD BUTTON_F1
#define FM_PRESET_ACTION BUTTON_F3
-#elif CONFIG_KEYPAD == IRIVER_H100_PAD
+#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
/* pause/play - short PLAY */
#define FM_PLAY_PRE BUTTON_ON
#define FM_RC_PLAY_PRE BUTTON_RC_ON
@@ -1075,7 +1075,7 @@ int handle_radio_presets_cb(int key, int m)
key = BUTTON_NONE;
break;
#endif
-#if CONFIG_KEYPAD != IRIVER_H100_PAD
+#if (CONFIG_KEYPAD != IRIVER_H100_PAD) && (CONFIG_KEYPAD != IRIVER_H300_PAD)
#ifdef FM_PRESET
case FM_PRESET:
menu_draw(m);
@@ -1285,7 +1285,7 @@ int radio_menu_cb(int key, int m)
(void)m;
switch(key)
{
-#if CONFIG_KEYPAD != IRIVER_H100_PAD
+#if (CONFIG_KEYPAD != IRIVER_H100_PAD) && (CONFIG_KEYPAD != IRIVER_H300_PAD)
#ifdef MENU_ENTER2
case MENU_ENTER2:
#endif
@@ -1294,7 +1294,7 @@ int radio_menu_cb(int key, int m)
key = BUTTON_NONE; /* eat the downpress, next menu reacts on release */
break;
-#if CONFIG_KEYPAD != IRIVER_H100_PAD
+#if (CONFIG_KEYPAD != IRIVER_H100_PAD) && (CONFIG_KEYPAD != IRIVER_H300_PAD)
#ifdef MENU_ENTER2
case MENU_ENTER2 | BUTTON_REL:
#endif