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