From 1f36e9b9d878549562a1ac5e634fec400e17e13e Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Sun, 22 May 2022 18:42:39 +1000 Subject: [PATCH] Added voice prompt to warn that during backup/restore no voice prompts will be available. Note that this is stil not hooked up. --- openrtx/include/core/voicePrompts.h | 1 + openrtx/src/core/voicePromptUtils.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/openrtx/include/core/voicePrompts.h b/openrtx/include/core/voicePrompts.h index 7930f147..7382616d 100644 --- a/openrtx/include/core/voicePrompts.h +++ b/openrtx/include/core/voicePrompts.h @@ -135,6 +135,7 @@ PROMPT_ALTITUDE, // altitude PROMPT_SATELLITES, // satellites PROMPT_COMPASS, // compass PROMPT_DEGREES, // degrees +PROMPT_VP_UNAVAILABLE, // Voice prompts will be unavailable during this operation. PROMPT_CHARACTER, // character PROMPT_SPACE, // space PROMPT_PERCENT, // Percent diff --git a/openrtx/src/core/voicePromptUtils.c b/openrtx/src/core/voicePromptUtils.c index e8babe51..e37e22c3 100644 --- a/openrtx/src/core/voicePromptUtils.c +++ b/openrtx/src/core/voicePromptUtils.c @@ -571,6 +571,7 @@ void announceBackupScreen() vpQueueStringTableEntry(¤tLanguage->connectToRTXTool); vpQueueStringTableEntry(¤tLanguage->toBackupFlashAnd); vpQueueStringTableEntry(¤tLanguage->pressPTTToStart); + vpQueuePrompt(PROMPT_VP_UNAVAILABLE); vpPlay(); } @@ -584,6 +585,7 @@ void announceRestoreScreen() vpQueueStringTableEntry(¤tLanguage->connectToRTXTool); vpQueueStringTableEntry(¤tLanguage->toRestoreFlashAnd); vpQueueStringTableEntry(¤tLanguage->pressPTTToStart); + vpQueuePrompt(PROMPT_VP_UNAVAILABLE); vpPlay(); }