summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-04-12 13:03:52 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-04-12 13:03:52 +0000
commit4bf9733f967cecc51e2d712ec5101872da76b5a1 (patch)
treee476f4540a2d6e229c9a47c4f215428f93f56b0c /apps
parentf2d8b0e97585b71b9d66e5b1e536f9ca5dc22b3b (diff)
removed a warning, BTW: you need to update your voice file for the new stuff
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4488 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/main_menu.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index 8e1b7871c1..a8347fb5df 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -163,8 +163,6 @@ bool show_info(void)
if (global_settings.talk_menu)
{ /* say whatever is reasonable, no real connection to the screen */
- struct tm* tm;
-
if (battery_level() >= 0)
{
talk_id(LANG_BATTERY_TIME, true);
@@ -178,14 +176,16 @@ bool show_info(void)
talk_value(decimal, UNIT_GB, true);
#ifdef HAVE_RTC
- tm = get_time();
- talk_id(VOICE_CURRENT_TIME, true);
- talk_value(tm->tm_hour, UNIT_HOUR, true);
- talk_value(tm->tm_min, UNIT_MIN, true);
- talk_value(tm->tm_sec, UNIT_SEC, true);
- talk_id(LANG_MONTH_JANUARY + tm->tm_mon, true);
- talk_number(tm->tm_mday, true);
- talk_number(1900 + tm->tm_year, true);
+ {
+ struct tm* tm = get_time();
+ talk_id(VOICE_CURRENT_TIME, true);
+ talk_value(tm->tm_hour, UNIT_HOUR, true);
+ talk_value(tm->tm_min, UNIT_MIN, true);
+ talk_value(tm->tm_sec, UNIT_SEC, true);
+ talk_id(LANG_MONTH_JANUARY + tm->tm_mon, true);
+ talk_number(tm->tm_mday, true);
+ talk_number(1900 + tm->tm_year, true);
+ }
#endif
}