More fixes and added eeprom space for BW and MS

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-10-28 23:37:50 +02:00
parent 17f1ef2eb6
commit 8d85e318a7
2 changed files with 9 additions and 4 deletions
+5 -3
View File
@@ -107,9 +107,9 @@
// EEPROM index defines
#define EE_PRESETS_CNT 99
#define EE_CHECKBYTE_VALUE 36 // 0 ~ 255,add new entry, change for new value
#define EE_CHECKBYTE_VALUE 37 // 0 ~ 255,add new entry, change for new value
#define EE_TOTAL_CNT 618
#define EE_TOTAL_CNT 818
#define EE_UINT16_FREQUENCY_FM 0
#define EE_BYTE_VOLSET 4
#define EE_BYTE_STEREO 5
@@ -184,7 +184,9 @@
#define EE_BYTE_FASTPS 118
#define EE_BYTE_TOT 119
#define EE_PRESETS_BAND_START 120
#define EE_PRESETS_START 220
#define EE_PRESET_BW_START 220
#define EE_PRESET_MS_START 320
#define EE_PRESETS_START 420
#define EE_PRESETS_FREQUENCY 8750
// End of EEPROM index defines
+4 -1
View File
@@ -4,6 +4,7 @@
#include <WiFi.h>
#include <Wire.h>
#include <EEPROM.h>
#include <cstring>
byte menuitem;
byte items[8] = {8, 3, 6, 10, 9, 10, 8, 5};
@@ -352,7 +353,9 @@ void BuildAFScreen() {
PSold = " ";
for (byte i = 0; i < 20; i++) eonpsold[i] = "";
for (byte i = 0; i < 20; i++) mappedfreqold[i] = 0;
for (byte i = 0; i < 20; i++) eonpicodeold[0][i] = '\0';
for (byte i = 0; i < 20; i++) {
std::memset(eonpicodeold[i], '\0', sizeof(eonpicodeold[i]));
}
}
}