|
@@ -71,6 +71,12 @@ void eeprom_init()
|
|
|
}
|
|
|
if(is_uninitialized)
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
+ if(i == 0){
|
|
|
+ int last_babystep = eeprom_read_word((uint16_t *)EEPROM_BABYSTEP_Z);
|
|
|
+ eeprom_write_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[i].z_offset)), last_babystep);
|
|
|
+ }
|
|
|
eeprom_write(&(EEPROM_Sheets_base->s[i].name[0]), static_cast<char>(i + '1'));
|
|
|
eeprom_write(&(EEPROM_Sheets_base->s[i].name[1]), '\0');
|
|
|
}
|