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
This commit is contained in:
Jörg Hohensohn 2004-04-12 13:03:52 +00:00
parent f2d8b0e975
commit 4bf9733f96

View file

@ -163,8 +163,6 @@ bool show_info(void)
if (global_settings.talk_menu) if (global_settings.talk_menu)
{ /* say whatever is reasonable, no real connection to the screen */ { /* say whatever is reasonable, no real connection to the screen */
struct tm* tm;
if (battery_level() >= 0) if (battery_level() >= 0)
{ {
talk_id(LANG_BATTERY_TIME, true); talk_id(LANG_BATTERY_TIME, true);
@ -178,14 +176,16 @@ bool show_info(void)
talk_value(decimal, UNIT_GB, true); talk_value(decimal, UNIT_GB, true);
#ifdef HAVE_RTC #ifdef HAVE_RTC
tm = get_time(); {
talk_id(VOICE_CURRENT_TIME, true); struct tm* tm = get_time();
talk_value(tm->tm_hour, UNIT_HOUR, true); talk_id(VOICE_CURRENT_TIME, true);
talk_value(tm->tm_min, UNIT_MIN, true); talk_value(tm->tm_hour, UNIT_HOUR, true);
talk_value(tm->tm_sec, UNIT_SEC, true); talk_value(tm->tm_min, UNIT_MIN, true);
talk_id(LANG_MONTH_JANUARY + tm->tm_mon, true); talk_value(tm->tm_sec, UNIT_SEC, true);
talk_number(tm->tm_mday, true); talk_id(LANG_MONTH_JANUARY + tm->tm_mon, true);
talk_number(1900 + tm->tm_year, true); talk_number(tm->tm_mday, true);
talk_number(1900 + tm->tm_year, true);
}
#endif #endif
} }