Browse Source

Report EEPROM data size, not final index

Scott Lahteine 8 years ago
parent
commit
3bd76f60e4
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/configuration_store.cpp

+ 3
- 2
Marlin/configuration_store.cpp View File

@@ -240,6 +240,7 @@ void Config_Postprocess() {
240 240
 
241 241
     const uint8_t esteppers = E_STEPPERS;
242 242
     EEPROM_WRITE(esteppers);
243
+
243 244
     EEPROM_WRITE(planner.axis_steps_per_mm);
244 245
     EEPROM_WRITE(planner.max_feedrate_mm_s);
245 246
     EEPROM_WRITE(planner.max_acceleration_mm_per_s2);
@@ -439,7 +440,7 @@ void Config_Postprocess() {
439 440
 
440 441
       // Report storage size
441 442
       SERIAL_ECHO_START;
442
-      SERIAL_ECHOPAIR("Settings Stored (", eeprom_size);
443
+      SERIAL_ECHOPAIR("Settings Stored (", eeprom_size - (EEPROM_OFFSET));
443 444
       SERIAL_ECHOLNPGM(" bytes)");
444 445
     }
445 446
   }
@@ -680,7 +681,7 @@ void Config_Postprocess() {
680 681
           Config_Postprocess();
681 682
           SERIAL_ECHO_START;
682 683
           SERIAL_ECHO(version);
683
-          SERIAL_ECHOPAIR(" stored settings retrieved (", eeprom_index);
684
+          SERIAL_ECHOPAIR(" stored settings retrieved (", eeprom_index - (EEPROM_OFFSET));
684 685
           SERIAL_ECHOLNPGM(" bytes)");
685 686
         }
686 687
       }

Loading…
Cancel
Save