|
@@ -37,7 +37,7 @@ void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size)
|
37
|
37
|
// the default values are used whenever there is a change to the data, to prevent
|
38
|
38
|
// wrong data being written to the variables.
|
39
|
39
|
// ALSO: always make sure the variables in the Store and retrieve sections are in the same order.
|
40
|
|
-#define EEPROM_VERSION "V08"
|
|
40
|
+#define EEPROM_VERSION "V09"
|
41
|
41
|
|
42
|
42
|
#ifdef EEPROM_SETTINGS
|
43
|
43
|
void Config_StoreSettings()
|
|
@@ -57,6 +57,9 @@ void Config_StoreSettings()
|
57
|
57
|
EEPROM_WRITE_VAR(i,max_z_jerk);
|
58
|
58
|
EEPROM_WRITE_VAR(i,max_e_jerk);
|
59
|
59
|
EEPROM_WRITE_VAR(i,add_homeing);
|
|
60
|
+ #ifdef DELTA
|
|
61
|
+ EEPROM_WRITE_VAR(i,endstop_adj);
|
|
62
|
+ #endif
|
60
|
63
|
#ifndef ULTIPANEL
|
61
|
64
|
int plaPreheatHotendTemp = PLA_PREHEAT_HOTEND_TEMP, plaPreheatHPBTemp = PLA_PREHEAT_HPB_TEMP, plaPreheatFanSpeed = PLA_PREHEAT_FAN_SPEED;
|
62
|
65
|
int absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP, absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP, absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED;
|
|
@@ -145,6 +148,15 @@ void Config_PrintSettings()
|
145
|
148
|
SERIAL_ECHOPAIR(" Y" ,add_homeing[1] );
|
146
|
149
|
SERIAL_ECHOPAIR(" Z" ,add_homeing[2] );
|
147
|
150
|
SERIAL_ECHOLN("");
|
|
151
|
+#ifdef DELTA
|
|
152
|
+ SERIAL_ECHO_START;
|
|
153
|
+ SERIAL_ECHOLNPGM("Endstop adjustement (mm):");
|
|
154
|
+ SERIAL_ECHO_START;
|
|
155
|
+ SERIAL_ECHOPAIR(" M666 X",endstop_adj[0] );
|
|
156
|
+ SERIAL_ECHOPAIR(" Y" ,endstop_adj[1] );
|
|
157
|
+ SERIAL_ECHOPAIR(" Z" ,endstop_adj[2] );
|
|
158
|
+ SERIAL_ECHOLN("");
|
|
159
|
+#endif
|
148
|
160
|
#ifdef PIDTEMP
|
149
|
161
|
SERIAL_ECHO_START;
|
150
|
162
|
SERIAL_ECHOLNPGM("PID settings:");
|
|
@@ -185,6 +197,9 @@ void Config_RetrieveSettings()
|
185
|
197
|
EEPROM_READ_VAR(i,max_z_jerk);
|
186
|
198
|
EEPROM_READ_VAR(i,max_e_jerk);
|
187
|
199
|
EEPROM_READ_VAR(i,add_homeing);
|
|
200
|
+ #ifdef DELTA
|
|
201
|
+ EEPROM_READ_VAR(i,endstop_adj);
|
|
202
|
+ #endif
|
188
|
203
|
#ifndef ULTIPANEL
|
189
|
204
|
int plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed;
|
190
|
205
|
int absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed;
|
|
@@ -244,6 +259,9 @@ void Config_ResetDefault()
|
244
|
259
|
max_z_jerk=DEFAULT_ZJERK;
|
245
|
260
|
max_e_jerk=DEFAULT_EJERK;
|
246
|
261
|
add_homeing[0] = add_homeing[1] = add_homeing[2] = 0;
|
|
262
|
+#ifdef DELTA
|
|
263
|
+ endstop_adj[0] = endstop_adj[1] = endstop_adj[2] = 0;
|
|
264
|
+#endif
|
247
|
265
|
#ifdef ULTIPANEL
|
248
|
266
|
plaPreheatHotendTemp = PLA_PREHEAT_HOTEND_TEMP;
|
249
|
267
|
plaPreheatHPBTemp = PLA_PREHEAT_HPB_TEMP;
|