From 9f5a45954dd196de0ca2d2fcb8c9c4b98fc908f7 Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Thu, 1 Sep 2022 22:11:08 +1000 Subject: [PATCH] When GPS is disabled, and you choose the GPS menu item, announce GPS off rather than nothing. --- openrtx/src/core/voicePromptUtils.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/openrtx/src/core/voicePromptUtils.c b/openrtx/src/core/voicePromptUtils.c index c8b21967..d40b0447 100644 --- a/openrtx/src/core/voicePromptUtils.c +++ b/openrtx/src/core/voicePromptUtils.c @@ -531,14 +531,18 @@ void vp_announceM17Info(const channel_t* channel, const vpQueueFlags_t flags) #ifdef GPS_PRESENT void vp_announceGPSInfo() { - if (!state.settings.gps_enabled) - return; - vp_flush(); vpQueueFlags_t flags = vpqIncludeDescriptions | vpqAddSeparatingSilence; vp_queueStringTableEntry(¤tLanguage->gps); + if (!state.settings.gps_enabled) + { + vp_queueStringTableEntry(¤tLanguage->off); + vp_play(); + + return; + } switch (state.gps_data.fix_quality) {