From 95b7707d875a21d62d93130f8b82704ffb9a61c5 Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Tue, 6 Sep 2022 11:07:10 +1000 Subject: [PATCH] Implemented speech feedback for setting UTC timezone. Added speaking of negative sign for vp_queueInteger (plus is assumed if not negative). --- openrtx/src/core/voicePrompts.c | 2 ++ openrtx/src/ui/ui.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openrtx/src/core/voicePrompts.c b/openrtx/src/core/voicePrompts.c index 5b19c9aa..c8b5f7ae 100644 --- a/openrtx/src/core/voicePrompts.c +++ b/openrtx/src/core/voicePrompts.c @@ -412,6 +412,8 @@ void vp_queueInteger(const int value) return; char buf[12] = {0}; // min: -2147483648, max: 2147483647 + if (value < 0) + vp_queuePrompt(PROMPT_MINUS); snprintf(buf, 12, "%d", value); vp_queueString(buf, 0); } diff --git a/openrtx/src/ui/ui.c b/openrtx/src/ui/ui.c index 574cef9c..47a53903 100644 --- a/openrtx/src/ui/ui.c +++ b/openrtx/src/ui/ui.c @@ -1831,7 +1831,9 @@ void ui_updateFSM(bool *sync_rtx) else if(msg.keys & KEY_RIGHT || msg.keys & KEY_DOWN || msg.keys & KNOB_RIGHT) state.settings.utc_timezone += 1; - // todo announce timezone change + vp_announceSettingsInt(¤tLanguage->UTCTimeZone, + queueFlags, + state.settings.utc_timezone); break; default: state.ui_screen = SETTINGS_GPS;