mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-21 17:57:59 +00:00
Saving and reading VOX delay.
This commit is contained in:
parent
a1a6cf549b
commit
347d5b57c3
2
Makefile
2
Makefile
@ -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
|
||||
|
4
board.c
4
board.c
@ -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.
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user