SQLTone saving and loading from eeprom.

This commit is contained in:
Nunu 2024-01-15 19:38:17 +01:00
parent b5f06379a4
commit 58803e0a09
5 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -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;

View File

@ -1 +0,0 @@
,nunu,t490s,15.01.2024 19:17,file:///home/nunu/.config/libreoffice/4;

Binary file not shown.

View File

@ -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;