Open smangels opened 3 years ago
Wonder what to look for? Illegal value in the "My DMRid"could be start perhaps. Will do some tests.
@smangels I call a function to find out if the EEPROM is empty. Can you add code with more distinct critera to this function below.
bool settingsInitiated(void) { // read start address, if flag 0x7F is visable + version > 0 // return True
eepromContainer.flag = 0x0000; eepromContainer.version = 0X0000;
EEPROM.get(ADDR_SETTINGS, eepromContainer); if (eepromContainer.flag == 0x7F7F && eepromContainer.version > 0) { settingsPrintMsg("settingsInitiated, TRUE"); return true; } else { Serial.println(eepromContainer.flag,HEX); Serial.println(eepromContainer.version,HEX); settingsPrintMsg("settingsInitiated, FALSE"); return false; }
}
Check if DMRid >0 and < 9999999 and first letter is a valid letter in callsign?