Fixed voice menu, it will now display as: Voice off, Voice Beep, or Voice 1 through 3.

This commit is contained in:
vk7js 2022-05-19 14:33:27 +10:00 committed by Silvano Seva
parent 206e827aeb
commit 74ab9cbbf6
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ const char *settings_gps_items[] =
#endif #endif
const char * settings_voice_items[] = const char * settings_voice_items[] =
{ {
"Voice Level", "Voice",
"Phonetic" "Phonetic"
}; };

View File

@ -293,7 +293,7 @@ int _ui_getVoiceValueName(char *buf, uint8_t max_len, uint8_t index)
snprintf(buf, max_len, "%s", currentLanguage->beep); snprintf(buf, max_len, "%s", currentLanguage->beep);
break; break;
default: default:
snprintf(buf, max_len, "%s %d", currentLanguage->level, (value-vpBeep)); snprintf(buf, max_len, "%d", (value-vpBeep));
break; break;
} }
break; break;