forked from len0rd/rockbox
Simplify a tiny bit more.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14426 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
94381ebc30
commit
b2ea2bd6c5
1 changed files with 4 additions and 4 deletions
|
|
@ -211,12 +211,12 @@ static bool show_info(void)
|
|||
talk_id(VOICE_CURRENT_TIME, true);
|
||||
if (global_settings.timeformat == 1)
|
||||
{
|
||||
bool pm = false;
|
||||
long am_pm_id = VOICE_AM;
|
||||
int hour = tm->tm_hour;
|
||||
|
||||
|
||||
if (hour >= 12)
|
||||
{
|
||||
pm = true;
|
||||
am_pm_id = VOICE_PM;
|
||||
hour -= 12;
|
||||
}
|
||||
if (hour == 0)
|
||||
|
|
@ -235,7 +235,7 @@ static bool show_info(void)
|
|||
talk_value(tm->tm_min, UNIT_INT, true);
|
||||
}
|
||||
|
||||
talk_id(pm ? VOICE_PM : VOICE_AM, true);
|
||||
talk_id(am_pm_id, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue