summaryrefslogtreecommitdiffstats
path: root/apps/radio/radio.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/radio/radio.c')
-rw-r--r--apps/radio/radio.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/apps/radio/radio.c b/apps/radio/radio.c
index e5badb10a8..ec816c6a54 100644
--- a/apps/radio/radio.c
+++ b/apps/radio/radio.c
@@ -387,10 +387,9 @@ void talk_freq(int freq, bool enqueue)
}
-int radio_screen(void)
+void radio_screen(void)
{
bool done = false;
- int ret_val = GO_TO_ROOT;
int button;
int i;
bool stereo = false, last_stereo = false;
@@ -403,7 +402,6 @@ int radio_screen(void)
unsigned long rec_lastclick = 0;
#endif
#if CONFIG_CODEC != SWCODEC
- bool have_recorded = false;
int timeout = current_tick + HZ/10;
unsigned int last_seconds = 0;
#if !defined(SIMULATOR)
@@ -433,9 +431,7 @@ int radio_screen(void)
#ifndef SIMULATOR
#if CONFIG_CODEC != SWCODEC
- if(rec_create_directory() > 0)
- have_recorded = true;
-
+ rec_create_directory();
audio_init_recording(talk_get_bufsize());
sound_settings_apply();
@@ -558,7 +554,6 @@ int radio_screen(void)
}
else
{
- have_recorded = true;
rec_command(RECORDING_CMD_START);
update_type = SKIN_REFRESH_ALL;
}
@@ -574,7 +569,6 @@ int radio_screen(void)
#endif
keep_playing = true;
done = true;
- ret_val = GO_TO_ROOT;
if(presets_have_changed())
{
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
@@ -741,7 +735,6 @@ int radio_screen(void)
#endif
keep_playing = false;
done = true;
- ret_val = GO_TO_ROOT;
if(presets_have_changed())
{
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
@@ -884,11 +877,6 @@ int radio_screen(void)
#endif
fms_fix_displays(FMS_EXIT);
in_screen = false;
-#if CONFIG_CODEC != SWCODEC
- return have_recorded;
-#else
- return false;
-#endif
} /* radio_screen */
void toggle_mono_mode(bool mono)