kopia lustrzana https://github.com/OpenRTX/OpenRTX
When GPS is disabled, and you choose the GPS menu item, announce GPS off rather than nothing.
rodzic
8cb9272881
commit
9f5a45954d
|
@ -531,14 +531,18 @@ void vp_announceM17Info(const channel_t* channel, const vpQueueFlags_t flags)
|
|||
#ifdef GPS_PRESENT
|
||||
void vp_announceGPSInfo()
|
||||
{
|
||||
if (!state.settings.gps_enabled)
|
||||
return;
|
||||
|
||||
vp_flush();
|
||||
vpQueueFlags_t flags = vpqIncludeDescriptions
|
||||
| vpqAddSeparatingSilence;
|
||||
|
||||
vp_queueStringTableEntry(¤tLanguage->gps);
|
||||
if (!state.settings.gps_enabled)
|
||||
{
|
||||
vp_queueStringTableEntry(¤tLanguage->off);
|
||||
vp_play();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
switch (state.gps_data.fix_quality)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue