From 29bde26f4f017b016bc70aa6e4bc49348b82c0d1 Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Fri, 20 May 2022 21:34:34 +1000 Subject: [PATCH] Added announceBackupScreen() and announceRestoreScreen() --- openrtx/include/core/voicePromptUtils.h | 2 ++ openrtx/src/core/voicePromptUtils.c | 27 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/openrtx/include/core/voicePromptUtils.h b/openrtx/include/core/voicePromptUtils.h index 849cc5b4..9aea4704 100644 --- a/openrtx/include/core/voicePromptUtils.h +++ b/openrtx/include/core/voicePromptUtils.h @@ -69,6 +69,8 @@ void announceM17Info(channel_t* channel, VoicePromptQueueFlags_T flags); void announceGPSInfo(); #endif // GPS_PRESENT void announceAboutScreen(); +void announceBackupScreen(); +void announceRestoreScreen(); VoicePromptQueueFlags_T GetQueueFlagsForVoiceLevel(); diff --git a/openrtx/src/core/voicePromptUtils.c b/openrtx/src/core/voicePromptUtils.c index bc0c7d28..d36c7ab7 100644 --- a/openrtx/src/core/voicePromptUtils.c +++ b/openrtx/src/core/voicePromptUtils.c @@ -546,6 +546,7 @@ void announceGPSInfo() vpPlay(); } #endif // GPS_PRESENT + void announceAboutScreen() { vpInit(); @@ -561,6 +562,32 @@ void announceAboutScreen() vpPlay(); } +void announceBackupScreen() +{ + vpInit(); + + vpQueueStringTableEntry(¤tLanguage->flashBackup); + + vpQueueStringTableEntry(¤tLanguage->connectToRTXTool); + vpQueueStringTableEntry(¤tLanguage->toBackupFlashAnd); + vpQueueStringTableEntry(¤tLanguage->pressPTTToStart); + + vpPlay(); +} + +void announceRestoreScreen() +{ + vpInit(); + + vpQueueStringTableEntry(¤tLanguage->flashRestore); + + vpQueueStringTableEntry(¤tLanguage->connectToRTXTool); + vpQueueStringTableEntry(¤tLanguage->toRestoreFlashAnd); + vpQueueStringTableEntry(¤tLanguage->pressPTTToStart); + + vpPlay(); +} + /* there are 5 levels of verbosity: