When GPS is disabled, and you choose the GPS menu item, announce GPS off rather than nothing.

md1702
vk7js 2022-09-01 22:11:08 +10:00 zatwierdzone przez Silvano Seva
rodzic 8cb9272881
commit 9f5a45954d
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -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(&currentLanguage->gps);
if (!state.settings.gps_enabled)
{
vp_queueStringTableEntry(&currentLanguage->off);
vp_play();
return;
}
switch (state.gps_data.fix_quality)
{