From 52479d10b5157fe949e471b0efde4fe80e0de1d2 Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Thu, 1 Sep 2022 22:59:14 +1000 Subject: [PATCH] Minor cleanup Added Accessibility menu name to string table for voice prompt announcement. Removed unnecessary comment. --- openrtx/include/ui/EnglishStrings.h | 1 + openrtx/include/ui/ui_strings.h | 1 + openrtx/src/ui/ui.c | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openrtx/include/ui/EnglishStrings.h b/openrtx/include/ui/EnglishStrings.h index 79bf97a3..0e0b1f95 100644 --- a/openrtx/include/ui/EnglishStrings.h +++ b/openrtx/include/ui/EnglishStrings.h @@ -88,5 +88,6 @@ const stringsTable_t englishStrings = .macroMenu = "Macro Menu", .forEmergencyUse = "For emergency use", .pressAnyButton = "press any button.", + .accessibility = "Accessibility", }; #endif // ENGLISHSTRINGS_H diff --git a/openrtx/include/ui/ui_strings.h b/openrtx/include/ui/ui_strings.h index 78edcd6e..5f711221 100644 --- a/openrtx/include/ui/ui_strings.h +++ b/openrtx/include/ui/ui_strings.h @@ -93,6 +93,7 @@ typedef struct const char* macroMenu; const char* forEmergencyUse; const char* pressAnyButton; + const char* accessibility; } stringsTable_t; diff --git a/openrtx/src/ui/ui.c b/openrtx/src/ui/ui.c index ca64cf3e..52588c3e 100644 --- a/openrtx/src/ui/ui.c +++ b/openrtx/src/ui/ui.c @@ -1214,7 +1214,6 @@ void ui_updateFSM(bool *sync_rtx) ui_state.last_main_state = state.ui_screen; // Open Menu state.ui_screen = MENU_TOP; - // TODO: announce the menu name. // The selected item will be announced when the item is first selected. } else if(msg.keys & KEY_ESC)