Added warning when RE EEPROM data being lost when preserveEeprom is disabled

This commit is contained in:
Nav
2023-05-28 21:27:26 +01:00
parent 216a1357b7
commit f3b64beaff

View File

@@ -366,6 +366,11 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
if (this->targetConfig.preserveEeprom) {
Logger::debug("Inspecting EESAVE fuse bit");
this->activeProgrammingSession->managingEesaveFuseBit = this->updateEesaveFuseBit(true);
} else {
Logger::warning(
"Performing chip-erase with preserveEeprom disabled. All EEPROM data will be lost!"
);
}
return this->avr8DebugInterface->eraseChip();