Added speech for About screen.
This commit is contained in:
parent
8527b8a6ef
commit
b1c07e3d3f
|
|
@ -68,6 +68,7 @@ void announceM17Info(channel_t* channel, VoicePromptQueueFlags_T flags);
|
|||
#ifdef GPS_PRESENT
|
||||
void announceGPSInfo();
|
||||
#endif // GPS_PRESENT
|
||||
void announceAboutScreen();
|
||||
|
||||
VoicePromptQueueFlags_T GetQueueFlagsForVoiceLevel();
|
||||
|
||||
|
|
|
|||
|
|
@ -546,6 +546,20 @@ void announceGPSInfo()
|
|||
vpPlay();
|
||||
}
|
||||
#endif // GPS_PRESENT
|
||||
void announceAboutScreen()
|
||||
{
|
||||
vpInit();
|
||||
|
||||
vpQueueStringTableEntry(¤tLanguage->openRTX);
|
||||
|
||||
vpQueueStringTableEntry(¤tLanguage->Niccolo);
|
||||
vpQueueStringTableEntry(¤tLanguage->Silvano);
|
||||
vpQueueStringTableEntry(¤tLanguage->Federico);
|
||||
vpQueueStringTableEntry(¤tLanguage->Fred);
|
||||
vpQueueStringTableEntry(¤tLanguage->Joseph);
|
||||
|
||||
vpPlay();
|
||||
}
|
||||
|
||||
/*
|
||||
there are 5 levels of verbosity:
|
||||
|
|
|
|||
|
|
@ -1526,7 +1526,15 @@ void ui_updateFSM(bool *sync_rtx)
|
|||
break;
|
||||
// About screen
|
||||
case MENU_ABOUT:
|
||||
if(msg.keys & KEY_ESC)
|
||||
if ((msg.keys & KEY_F1) && (state.settings.vpLevel > vpBeep))
|
||||
{// quick press repeat vp, long press summary.
|
||||
if (msg.long_press)
|
||||
announceAboutScreen();
|
||||
else
|
||||
ReplayLastPrompt();
|
||||
f1Handled = true;
|
||||
}
|
||||
else if(msg.keys & KEY_ESC)
|
||||
_ui_menuBack(MENU_TOP);
|
||||
break;
|
||||
#ifdef RTC_PRESENT
|
||||
|
|
|
|||
Loading…
Reference in New Issue