summaryrefslogtreecommitdiff
path: root/apps/menus/main_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/main_menu.c')
-rw-r--r--apps/menus/main_menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 022fb9b7e7..934be1d880 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -211,12 +211,12 @@ static bool show_info(void)
211 talk_id(VOICE_CURRENT_TIME, true); 211 talk_id(VOICE_CURRENT_TIME, true);
212 if (global_settings.timeformat == 1) 212 if (global_settings.timeformat == 1)
213 { 213 {
214 bool pm = false; 214 long am_pm_id = VOICE_AM;
215 int hour = tm->tm_hour; 215 int hour = tm->tm_hour;
216 216
217 if (hour >= 12) 217 if (hour >= 12)
218 { 218 {
219 pm = true; 219 am_pm_id = VOICE_PM;
220 hour -= 12; 220 hour -= 12;
221 } 221 }
222 if (hour == 0) 222 if (hour == 0)
@@ -235,7 +235,7 @@ static bool show_info(void)
235 talk_value(tm->tm_min, UNIT_INT, true); 235 talk_value(tm->tm_min, UNIT_INT, true);
236 } 236 }
237 237
238 talk_id(pm ? VOICE_PM : VOICE_AM, true); 238 talk_id(am_pm_id, true);
239 } 239 }
240 else 240 else
241 { 241 {