From 70ba324ef3e7dcf91531a2d7121124391afbe02c Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Wed, 7 Sep 2022 21:15:02 +1000 Subject: [PATCH] Fixed menu announcements so that menu item names are always spoken. --- openrtx/src/ui/ui_menu.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/openrtx/src/ui/ui_menu.c b/openrtx/src/ui/ui_menu.c index 9b2ecc00..34a6be7a 100644 --- a/openrtx/src/ui/ui_menu.c +++ b/openrtx/src/ui/ui_menu.c @@ -125,17 +125,10 @@ static void announceMenuItemIfNeeded(char* name, char* value, bool editMode) if (DidSelectedMenuItemChange(name, value) == false) return; - // See if we are already in the middle of speaking a menu item. - // e.g. when changing a value with left or right, we don't want to repeat the - // prompt if arrowing rapidly. - bool voicePromptWasPlaying = vp_isPlaying(); - // Stop any prompt in progress and/or clear the buffer. vp_flush(); - // If no value is supplied, or, no prompt is in progress, announce the name. - if ((voicePromptWasPlaying == false) || (value == NULL) || (*value == '\0')) - vp_announceText(name, vpqDefault); + vp_announceText(name, vpqDefault); // We determine if we should say the word Menu as follows: // The name has no associated value , // i.e. does not represent a modifyable name/value pair.