summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-08-18 09:18:40 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-08-18 09:18:40 +0000
commit82ac901095eb74e18e0474957ef5c1e0d52b4e8b (patch)
tree71571500438ecf93b824497c0867b94260299a2b /apps
parent57d8e8fe0c878fa9fdf806cfd0184ccbd53986ed (diff)
downloadrockbox-82ac901095eb74e18e0474957ef5c1e0d52b4e8b.zip
rockbox-82ac901095eb74e18e0474957ef5c1e0d52b4e8b.tar.gz
rockbox-82ac901095eb74e18e0474957ef5c1e0d52b4e8b.tar.bz2
rockbox-82ac901095eb74e18e0474957ef5c1e0d52b4e8b.tar.xz
iriver: Radio screen didn't properly filter stray FM_EXIT events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7349 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/radio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 286fd16..67306ac 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -72,6 +72,7 @@
#elif CONFIG_KEYPAD == IRIVER_H100_PAD
#define FM_MENU BUTTON_MODE
#define FM_STOP BUTTON_OFF
+#define FM_EXIT_PRE BUTTON_SELECT
#define FM_EXIT (BUTTON_SELECT | BUTTON_REL)
#elif CONFIG_KEYPAD == ONDIO_PAD /* restricted keypad */
#define FM_MENU (BUTTON_MENU | BUTTON_REPEAT)
@@ -341,6 +342,10 @@ bool radio_screen(void)
#endif /* #ifdef FM_RECORD */
case FM_EXIT:
+#ifdef FM_EXIT_PRE
+ if(lastbutton != FM_EXIT_PRE)
+ break;
+#endif
#ifndef SIMULATOR
if(audio_status() == AUDIO_STATUS_RECORD)
audio_stop();