Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Marlin/src/module/configuration_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,6 @@ void MarlinSettings::postprocess() {
SERIAL_ECHOPAIR_P(port, "(EEPROM=", stored_ver);
SERIAL_ECHOLNPGM_P(port, " Marlin=" EEPROM_VERSION ")");
#endif
if (!validating) reset();
eeprom_error = true;
}
else {
Expand Down Expand Up @@ -1511,15 +1510,13 @@ void MarlinSettings::postprocess() {
#endif
}

if (!validating) {
if (eeprom_error) reset(); else postprocess();
}
if (!validating && !eeprom_error) postprocess();

#if ENABLED(AUTO_BED_LEVELING_UBL)
ubl.report_state();

if (!validating) {
if (!ubl.sanity_check()) {
ubl.report_state();

if (!ubl.sanity_check()) {
SERIAL_EOL_P(port);
#if ENABLED(EEPROM_CHITCHAT)
ubl.echo_name();
Expand Down
7 changes: 4 additions & 3 deletions Marlin/src/module/configuration_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@ class MarlinSettings {
static bool save(PORTINIT_SOLO); // Return 'true' if data was saved

FORCE_INLINE static bool init_eeprom() {
bool success = true;
reset();
#if ENABLED(EEPROM_SETTINGS)
success = save();
const bool success = save();
#if ENABLED(EEPROM_CHITCHAT)
if (success) report();
#endif
return success;
#else
return true;
#endif
return success;
}

#if ENABLED(EEPROM_SETTINGS)
Expand Down