FreeTRX/MDUV380_firmware/application/source/functions
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
..
aprs.c Initial Commit 2026-07-06 08:45:33 +02:00
calibration.c Initial Commit 2026-07-06 08:45:33 +02:00
codeplug.c Channels: on-radio add/delete from the Channel quick menu 2026-07-10 11:11:48 +02:00
dmrDataProtocol.c DMR text messages (SMS): ETSI/Motorola-TMS messaging on the radio 2026-07-13 16:52:54 +02:00
hotspot.c Initial Commit 2026-07-06 08:45:33 +02:00
rxPowerSaving.c Initial Commit 2026-07-06 08:45:33 +02:00
satellite.c Initial Commit 2026-07-06 08:45:33 +02:00
settings.c Release 0.2.0: fix Display Options crash with voice prompts on 2026-07-07 15:41:59 +02:00
smsCore.c DMR text messages (SMS): ETSI/Motorola-TMS messaging on the radio 2026-07-13 16:52:54 +02:00
smsStorage.c DMR text messages (SMS): ETSI/Motorola-TMS messaging on the radio 2026-07-13 16:52:54 +02:00
sound.c DMR text messages (SMS): ETSI/Motorola-TMS messaging on the radio 2026-07-13 16:52:54 +02:00
ticks.c Initial Commit 2026-07-06 08:45:33 +02:00
trx.c Initial Commit 2026-07-06 08:45:33 +02:00
voicePrompts.c Fix crash announcing menu strings past the voice-prompt table 2026-07-13 17:31:09 +02:00
vox.c Initial Commit 2026-07-06 08:45:33 +02:00