enumstatus_code error_code = eeprom_emulator_init();
if(error_code == STATUS_ERR_NO_MEMORY) {while(true) {/* No EEPROM section has been set in the device's fuses */}}
Config BOD to give an early warning, so that we could prevent data loss.elseif(error_code != STATUS_OK) {/* Erase the emulated EEPROM memory (assume it is unformatted or * irrecoverably corrupt) */eeprom_emulator_erase_memory();eeprom_emulator_init();}
configure_bod();