Saving and reading VOX delay.

This commit is contained in:
Nunu 2023-12-29 13:41:51 +01:00
parent a1a6cf549b
commit 347d5b57c3
4 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ ENABLE_DTMF_CALLING := 0
#---- DEBUG ----
ENABLE_AM_FIX_SHOW_DATA := 0
ENABLE_ULTRA_LOW_POWER_TX := 1
ENABLE_ULTRA_LOW_POWER_TX := 0
# ---- CUSTOM MODS ----
ENABLE_BIG_FREQ := 1

View File

@ -605,9 +605,9 @@ void BOARD_EEPROM_Init(void)
memmove(&gEeprom.POWER_ON_PASSWORD, Data, 4);
// 0EA0..0EA7
#ifdef ENABLE_VOICE
#ifdef ENABLE_VOX
EEPROM_ReadBuffer(0x0EA0, Data, 8);
gEeprom.VOICE_PROMPT = (Data[0] < 3) ? Data[0] : VOICE_PROMPT_ENGLISH;
gEeprom.VOX_DELAY = (Data[0] < 11) ? Data[0] : 4;
#endif
// 0EA8..0EAF

Binary file not shown.

View File

@ -127,8 +127,8 @@ void SETTINGS_SaveSettings(void)
EEPROM_WriteBuffer(0x0E98, State);
memset(State, 0xFF, sizeof(State));
#ifdef ENABLE_VOICE
State[0] = gEeprom.VOICE_PROMPT;
#ifdef ENABLE_VOX
State[0] = gEeprom.VOX_DELAY;
EEPROM_WriteBuffer(0x0EA0, State);
#endif