diff options
Diffstat (limited to 'apps/menus/main_menu.c')
-rw-r--r-- | apps/menus/main_menu.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 934be1d880..b6fee4416d 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -222,7 +222,7 @@ static bool show_info(void) | |||
222 | if (hour == 0) | 222 | if (hour == 0) |
223 | hour = 12; | 223 | hour = 12; |
224 | 224 | ||
225 | talk_value(hour, UNIT_INT, true); | 225 | talk_number(hour, true); |
226 | 226 | ||
227 | /* Voice the minutes */ | 227 | /* Voice the minutes */ |
228 | if (tm->tm_min == 0) | 228 | if (tm->tm_min == 0) |
@@ -232,7 +232,7 @@ static bool show_info(void) | |||
232 | } | 232 | } |
233 | else | 233 | else |
234 | { | 234 | { |
235 | talk_value(tm->tm_min, UNIT_INT, true); | 235 | talk_number(tm->tm_min, true); |
236 | } | 236 | } |
237 | 237 | ||
238 | talk_id(am_pm_id, true); | 238 | talk_id(am_pm_id, true); |
@@ -240,8 +240,16 @@ static bool show_info(void) | |||
240 | else | 240 | else |
241 | { | 241 | { |
242 | /*voice the time in 24 hour format*/ | 242 | /*voice the time in 24 hour format*/ |
243 | talk_value(tm->tm_hour, UNIT_HOUR, true); | 243 | talk_number(tm->tm_hour, true); |
244 | talk_value(tm->tm_min, UNIT_MIN, true); | 244 | if (tm->tm_min == 0) |
245 | { | ||
246 | /*say o'clock if the minute is 0. */ | ||
247 | talk_id(VOICE_OCLOCK, true); | ||
248 | } | ||
249 | else | ||
250 | { | ||
251 | talk_number(tm->tm_min, true); | ||
252 | } | ||
245 | } | 253 | } |
246 | talk_id(LANG_MONTH_JANUARY + tm->tm_mon, true); | 254 | talk_id(LANG_MONTH_JANUARY + tm->tm_mon, true); |
247 | talk_number(tm->tm_mday, true); | 255 | talk_number(tm->tm_mday, true); |