Fix channel save problem

This commit is contained in:
OneOfEleven
2023-09-28 22:22:06 +01:00
parent 618d6962ff
commit f0ad919418
12 changed files with 23 additions and 29 deletions

View File

@@ -301,7 +301,7 @@ void AUDIO_PlayBeep(BEEP_Type_t Beep)
void AUDIO_SetVoiceID(uint8_t Index, VOICE_ID_t VoiceID)
{
if (Index >= 8)
if (Index >= ARRAY_SIZE(gVoiceID))
return;
if (Index == 0)