FreeTRX/MDUV380_firmware/application
Marcus Kida 9eceb10013 Fix crash announcing menu strings past the voice-prompt table
voicePromptsAppendLanguageString() turns a language-string pointer into a
prompt index (NUM_VOICE_PROMPTS + offset), and voicePromptsPlay() then reads
tableOfContents[index + 1]. Strings added after the voice-prompt pack was
built (the SMS menu entries) land past the 368-entry table, so the player
read off the end of the array and the radio crashed when the Messages menu
announced a submenu name with voice prompts enabled.

Clamp any index at or beyond the last table slot to PROMPT_SILENCE, so such
strings are simply not spoken. Also protects the pre-existing strings sitting
at the very end of the table.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 17:31:09 +02:00
..
include Release 0.7.0 2026-07-13 16:53:33 +02:00
source Fix crash announcing menu strings past the voice-prompt table 2026-07-13 17:31:09 +02:00