fixed issue of auto announcement clobbering manual request for summary.

Fixed a couple of issues with direction announcement.
md1702
vk7js 2022-09-13 16:37:36 +10:00 zatwierdzone przez Silvano Seva
rodzic 4edef678c1
commit f1639159bf
2 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -646,15 +646,15 @@ void vp_announceGPSInfo(vpGPSInfoFlags_t gpsInfoFlags)
{
vp_queuePrompt(PROMPT_NORTH);
}
else if (state.gps_data.tmg_true > 87 || state.gps_data.tmg_true < 93)
else if (state.gps_data.tmg_true > 87 && state.gps_data.tmg_true < 93)
{
vp_queuePrompt(PROMPT_EAST);
}
else if (state.gps_data.tmg_true > 177 || state.gps_data.tmg_true < 183)
else if (state.gps_data.tmg_true > 177 && state.gps_data.tmg_true < 183)
{
vp_queuePrompt(PROMPT_SOUTH);
}
else if (state.gps_data.tmg_true > 267 || state.gps_data.tmg_true < 273)
else if (state.gps_data.tmg_true > 267 && state.gps_data.tmg_true < 273)
{
vp_queuePrompt(PROMPT_WEST);
}

Wyświetl plik

@ -2018,8 +2018,9 @@ void ui_updateFSM(bool *sync_rtx)
ReleaseFunctionLatchIfNeeded();
#ifdef GPS_PRESENT
if ((state.ui_screen == MENU_GPS) &&
(!txOngoing && !rtx_rxSquelchOpen()) &&
(state.settings.vpLevel > vpLow))
(!vp_isPlaying()) &&
(state.settings.vpLevel > vpLow) &&
(!txOngoing && !rtx_rxSquelchOpen()))
{// automatically read speed and direction changes only!
vpGPSInfoFlags_t whatChanged = GetGPSDirectionOrSpeedChanged();
if (whatChanged != vpGPSNone)