|
@@ -625,15 +625,18 @@ void MarlinSettings::postprocess() {
|
625
|
625
|
if (!eeprom_error) {
|
626
|
626
|
const int eeprom_size = eeprom_index;
|
627
|
627
|
|
|
628
|
+ const uint16_t tcrc = working_crc;
|
|
629
|
+
|
628
|
630
|
// Write the EEPROM header
|
629
|
631
|
eeprom_index = EEPROM_OFFSET;
|
|
632
|
+
|
630
|
633
|
EEPROM_WRITE(version);
|
631
|
|
- EEPROM_WRITE(working_crc);
|
|
634
|
+ EEPROM_WRITE(tcrc);
|
632
|
635
|
|
633
|
636
|
// Report storage size
|
634
|
637
|
SERIAL_ECHO_START;
|
635
|
638
|
SERIAL_ECHOPAIR("Settings Stored (", eeprom_size - (EEPROM_OFFSET));
|
636
|
|
- SERIAL_ECHOPAIR(" bytes; crc ", working_crc);
|
|
639
|
+ SERIAL_ECHOPAIR(" bytes; crc ", tcrc);
|
637
|
640
|
SERIAL_ECHOLNPGM(")");
|
638
|
641
|
}
|
639
|
642
|
|
|
@@ -982,11 +985,11 @@ void MarlinSettings::postprocess() {
|
982
|
985
|
}
|
983
|
986
|
else {
|
984
|
987
|
SERIAL_ERROR_START;
|
985
|
|
- SERIAL_ERRORPGM("EEPROM checksum mismatch - (stored CRC)");
|
|
988
|
+ SERIAL_ERRORPGM("EEPROM CRC mismatch - (stored) ");
|
986
|
989
|
SERIAL_ERROR(stored_crc);
|
987
|
990
|
SERIAL_ERRORPGM(" != ");
|
988
|
991
|
SERIAL_ERROR(working_crc);
|
989
|
|
- SERIAL_ERRORLNPGM(" (calculated CRC)!");
|
|
992
|
+ SERIAL_ERRORLNPGM(" (calculated)!");
|
990
|
993
|
reset();
|
991
|
994
|
}
|
992
|
995
|
|
|
@@ -1027,7 +1030,6 @@ void MarlinSettings::postprocess() {
|
1027
|
1030
|
return !eeprom_error;
|
1028
|
1031
|
}
|
1029
|
1032
|
|
1030
|
|
-
|
1031
|
1033
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
1032
|
1034
|
|
1033
|
1035
|
void ubl_invalid_slot(const int s) {
|
|
@@ -1051,7 +1053,7 @@ void MarlinSettings::postprocess() {
|
1051
|
1053
|
if (!WITHIN(slot, 0, a - 1)) {
|
1052
|
1054
|
ubl_invalid_slot(a);
|
1053
|
1055
|
SERIAL_PROTOCOLPAIR("E2END=", E2END);
|
1054
|
|
- SERIAL_PROTOCOLPAIR(" meshes_end=", (int)meshes_end);
|
|
1056
|
+ SERIAL_PROTOCOLPAIR(" meshes_end=", meshes_end);
|
1055
|
1057
|
SERIAL_PROTOCOLLNPAIR(" slot=", slot);
|
1056
|
1058
|
SERIAL_EOL;
|
1057
|
1059
|
return;
|