summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/menus/main_menu.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 614f5a6c34..c77e9a7d16 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -302,24 +302,13 @@ static int info_speak_item(int selected_item, void * data)
302 break; 302 break;
303#if CONFIG_RTC 303#if CONFIG_RTC
304 case INFO_TIME: 304 case INFO_TIME:
305 tm = get_time();
306 talk_id(VOICE_CURRENT_TIME, false);
307 if (valid_time(tm))
308 {
309 talk_time(tm, true);
310 }
311 else
312 {
313 talk_id(LANG_UNKNOWN, true);
314 }
315 break;
316 case INFO_DATE:
317 if (TIME_AFTER(current_tick, last_talk + HZ*60)) 305 if (TIME_AFTER(current_tick, last_talk + HZ*60))
318 { 306 {
319 tm = get_time(); 307 tm = get_time();
308 talk_id(VOICE_CURRENT_TIME, false);
320 if (valid_time(tm)) 309 if (valid_time(tm))
321 { 310 {
322 talk_date(get_time(), true); 311 talk_time(tm, true);
323 } 312 }
324 else 313 else
325 { 314 {
@@ -328,6 +317,17 @@ static int info_speak_item(int selected_item, void * data)
328 last_talk = current_tick; 317 last_talk = current_tick;
329 } 318 }
330 break; 319 break;
320 case INFO_DATE:
321 tm = get_time();
322 if (valid_time(tm))
323 {
324 talk_date(get_time(), true);
325 }
326 else
327 {
328 talk_id(LANG_UNKNOWN, true);
329 }
330 break;
331#endif 331#endif
332 case INFO_BUFFER: /* buffer */ 332 case INFO_BUFFER: /* buffer */
333 { 333 {