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

Loading…
Cancel
Save