sm7eca / dmr-dreambox

Arduino based controller for a DMR-5WUF board
0 stars 0 forks source link

ESP - no dialog when booting from erased flash #109

Open smangels opened 3 years ago

smangels commented 3 years ago
sm7eca commented 3 years ago

Wonder what to look for? Illegal value in the "My DMRid"could be start perhaps. Will do some tests.

sm7eca commented 3 years ago

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

}

sm7eca commented 3 years ago

Check if DMRid >0 and < 9999999 and first letter is a valid letter in callsign?