diff --git a/openrtx/include/core/voicePrompts.h b/openrtx/include/core/voicePrompts.h index ba5cb3c1..bda62ccb 100644 --- a/openrtx/include/core/voicePrompts.h +++ b/openrtx/include/core/voicePrompts.h @@ -132,6 +132,9 @@ PROMPT_LATITUDE, // latitude PROMPT_LONGITUDE, // longitude PROMPT_SPEED, // speed PROMPT_ALTITUDE, // altitude +PROMPT_SATELLITES, // satellites +PROMPT_COMPASS, // compass +PROMPT_DEGREES, // degrees PROMPT_CHARACTER, // character PROMPT_SPACE, // space PROMPT_PERCENT, // Percent diff --git a/openrtx/src/core/voicePromptUtils.c b/openrtx/src/core/voicePromptUtils.c index 192e4126..263ca66a 100644 --- a/openrtx/src/core/voicePromptUtils.c +++ b/openrtx/src/core/voicePromptUtils.c @@ -510,6 +510,11 @@ void announceGPSInfo(VoicePromptQueueFlags_T flags) vpQueuePrompt(PROMPT_ALTITUDE); snprintf(buffer, 16, "%4.1fm", state.gps_data.altitude); vpQueueString(buffer, vpAnnounceCommonSymbols); + vpQueuePrompt(PROMPT_COMPASS); + vpQueueInteger(state.gps_data.tmg_true); + vpQueuePrompt(PROMPT_DEGREES); + vpQueuePrompt(PROMPT_SATELLITES); + vpQueueInteger(__builtin_popcount(state.gps_data.active_sats)); vpPlayIfNeeded(flags); } diff --git a/openrtx/src/ui/ui_menu.c b/openrtx/src/ui/ui_menu.c index 646f8ce2..d4421f85 100644 --- a/openrtx/src/ui/ui_menu.c +++ b/openrtx/src/ui/ui_menu.c @@ -471,7 +471,7 @@ void _ui_drawMenuGPS() fix_buf = "PPS"; break; default: - fix_buf = currentLanguage->error; + fix_buf = (char*)currentLanguage->error; break; } @@ -487,7 +487,7 @@ void _ui_drawMenuGPS() type_buf = "3D"; break; default: - type_buf = currentLanguage->error; + type_buf = (char*)currentLanguage->error; break; } gfx_print(layout.line1_pos, layout.top_font, TEXT_ALIGN_LEFT,