diff options
-rw-r--r-- | apps/bookmark.c | 7 | ||||
-rw-r--r-- | apps/radio/radio.c | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c index 28aecb4c23..434ac2aa95 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c | |||
@@ -857,8 +857,6 @@ static bool delete_bookmark(const char* bookmark_file_name, int bookmark_id) | |||
857 | static void say_bookmark(const char* bookmark, | 857 | static void say_bookmark(const char* bookmark, |
858 | int bookmark_id, bool show_playlist_name) | 858 | int bookmark_id, bool show_playlist_name) |
859 | { | 859 | { |
860 | bool is_dir; | ||
861 | |||
862 | if (!parse_bookmark(bookmark, true)) | 860 | if (!parse_bookmark(bookmark, true)) |
863 | { | 861 | { |
864 | talk_id(LANG_BOOKMARK_INVALID, false); | 862 | talk_id(LANG_BOOKMARK_INVALID, false); |
@@ -867,9 +865,10 @@ static void say_bookmark(const char* bookmark, | |||
867 | 865 | ||
868 | talk_number(bookmark_id + 1, false); | 866 | talk_number(bookmark_id + 1, false); |
869 | 867 | ||
870 | is_dir = (global_temp_buffer[0] | ||
871 | && global_temp_buffer[strlen(global_temp_buffer)-1] == '/'); | ||
872 | #if CONFIG_CODEC == SWCODEC | 868 | #if CONFIG_CODEC == SWCODEC |
869 | bool is_dir = (global_temp_buffer[0] | ||
870 | && global_temp_buffer[strlen(global_temp_buffer)-1] == '/'); | ||
871 | |||
873 | /* HWCODEC cannot enqueue voice file entries and .talk thumbnails | 872 | /* HWCODEC cannot enqueue voice file entries and .talk thumbnails |
874 | together, because there is no guarantee that the same mp3 | 873 | together, because there is no guarantee that the same mp3 |
875 | parameters are used. */ | 874 | parameters are used. */ |
diff --git a/apps/radio/radio.c b/apps/radio/radio.c index d1a94ac295..5c0b884cd1 100644 --- a/apps/radio/radio.c +++ b/apps/radio/radio.c | |||
@@ -392,8 +392,8 @@ void radio_screen(void) | |||
392 | #endif | 392 | #endif |
393 | #if CONFIG_CODEC != SWCODEC | 393 | #if CONFIG_CODEC != SWCODEC |
394 | int timeout = current_tick + HZ/10; | 394 | int timeout = current_tick + HZ/10; |
395 | unsigned int last_seconds = 0; | ||
396 | #if !defined(SIMULATOR) | 395 | #if !defined(SIMULATOR) |
396 | unsigned int last_seconds = 0; | ||
397 | unsigned int seconds = 0; | 397 | unsigned int seconds = 0; |
398 | struct audio_recording_options rec_options; | 398 | struct audio_recording_options rec_options; |
399 | #endif /* SIMULATOR */ | 399 | #endif /* SIMULATOR */ |
@@ -547,8 +547,10 @@ void radio_screen(void) | |||
547 | rec_command(RECORDING_CMD_START); | 547 | rec_command(RECORDING_CMD_START); |
548 | update_type = SKIN_REFRESH_ALL; | 548 | update_type = SKIN_REFRESH_ALL; |
549 | } | 549 | } |
550 | #endif /* SIMULATOR */ | 550 | #if CONFIG_CODEC != SWCODEC |
551 | last_seconds = 0; | 551 | last_seconds = 0; |
552 | #endif | ||
553 | #endif /* SIMULATOR */ | ||
552 | break; | 554 | break; |
553 | #endif /* #ifdef FM_RECORD */ | 555 | #endif /* #ifdef FM_RECORD */ |
554 | 556 | ||