Fix memory position 99

Also set FM memory channels to auto stereo by default.
This commit is contained in:
Sjef Verhoeven PE5PVB
2023-11-18 18:22:26 +01:00
parent 8823f541b3
commit 1c9c5dc815
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3398,7 +3398,7 @@ void DefaultSettings(byte userhardwaremodel) {
for (int i = 0; i < EE_PRESETS_CNT; i++) EEPROM.writeByte(i + EE_PRESETS_BAND_START, BAND_FM);
for (int i = 0; i < EE_PRESETS_CNT; i++) EEPROM.writeUInt((i * 4) + EE_PRESETS_START, EE_PRESETS_FREQUENCY);
for (int i = 0; i < EE_PRESETS_CNT; i++) EEPROM.writeByte(i + EE_PRESET_BW_START, 0);
for (int i = 0; i < EE_PRESETS_CNT; i++) EEPROM.writeByte(i + EE_PRESET_MS_START, 0);
for (int i = 0; i < EE_PRESETS_CNT; i++) EEPROM.writeByte(i + EE_PRESET_MS_START, 1);
if (userhardwaremodel == BASE_ILI9341) EEPROM.writeUInt(EE_UINT16_FREQUENCY_LW, 180); else EEPROM.writeUInt(EE_UINT16_FREQUENCY_LW, 164);
if (userhardwaremodel == BASE_ILI9341) EEPROM.writeUInt(EE_UINT16_FREQUENCY_MW, 540); else EEPROM.writeUInt(EE_UINT16_FREQUENCY_MW, 639);
if (userhardwaremodel == BASE_ILI9341) EEPROM.writeUInt(EE_UINT16_FREQUENCY_SW, 1800); else EEPROM.writeUInt(EE_UINT16_FREQUENCY_SW, 5000);
+1 -1
View File
@@ -109,7 +109,7 @@
#define EE_PRESETS_CNT 99
#define EE_CHECKBYTE_VALUE 42 // 0 ~ 255,add new entry, change for new value
#define EE_TOTAL_CNT 819
#define EE_TOTAL_CNT 821
#define EE_UINT16_FREQUENCY_FM 0
#define EE_BYTE_VOLSET 4
#define EE_BYTE_STEREO 5