mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-21 17:57:59 +00:00
SQLTone saving and loading from eeprom.
This commit is contained in:
parent
b5f06379a4
commit
58803e0a09
@ -729,8 +729,7 @@ void MENU_AcceptSetting(void)
|
||||
gEeprom.SQL_TONE = gSubMenuSelection;
|
||||
gVfoConfigureMode = VFO_CONFIGURE_RELOAD;
|
||||
gFlagResetVfos = true;
|
||||
RADIO_SetupRegisters(true);
|
||||
return;
|
||||
break;
|
||||
|
||||
#ifdef ENABLE_NOAA
|
||||
case MENU_NOAA_S:
|
||||
|
2
board.c
2
board.c
@ -602,7 +602,7 @@ void BOARD_EEPROM_Init(void)
|
||||
gEeprom.ROGER = (Data[1] < 3) ? Data[1] : ROGER_MODE_OFF;
|
||||
gEeprom.TX_VFO = (Data[3] < 2) ? Data[3] : 0;
|
||||
gEeprom.BATTERY_TYPE = (Data[4] < BATTERY_TYPE_UNKNOWN) ? Data[4] : BATTERY_TYPE_1600_MAH;
|
||||
|
||||
gEeprom.SQL_TONE = (Data[5] < ARRAY_SIZE(CTCSS_Options)) ? Data[5] : 0;
|
||||
// 0ED0..0ED7
|
||||
EEPROM_ReadBuffer(0x0ED0, Data, 8);
|
||||
gEeprom.DTMF_SIDE_TONE = (Data[0] < 2) ? Data[0] : true;
|
||||
|
@ -1 +0,0 @@
|
||||
,nunu,t490s,15.01.2024 19:17,file:///home/nunu/.config/libreoffice/4;
|
Binary file not shown.
@ -119,6 +119,7 @@ void SETTINGS_SaveSettings(void)
|
||||
State[2] = gEeprom.REPEATER_TAIL_TONE_ELIMINATION;
|
||||
State[3] = gEeprom.TX_VFO;
|
||||
State[4] = gEeprom.BATTERY_TYPE;
|
||||
State[5] = gEeprom.SQL_TONE;
|
||||
EEPROM_WriteBuffer(0x0EA8, State, true);
|
||||
|
||||
State[0] = gEeprom.DTMF_SIDE_TONE;
|
||||
|
Loading…
Reference in New Issue
Block a user