|
@@ -161,11 +161,12 @@ void Config_StoreSettings() {
|
161
|
161
|
{
|
162
|
162
|
#endif // !PIDTEMP
|
163
|
163
|
|
164
|
|
- dummy = DUMMY_PID_VALUE;
|
165
|
|
- EEPROM_WRITE_VAR(i, dummy);
|
166
|
|
- dummy = 0.0f;
|
167
|
|
- for (int q = 3; q--;) EEPROM_WRITE_VAR(i, dummy);
|
168
|
|
- }
|
|
164
|
+ dummy = DUMMY_PID_VALUE;
|
|
165
|
+ EEPROM_WRITE_VAR(i, dummy);
|
|
166
|
+ dummy = 0.0f;
|
|
167
|
+ for (int q = 3; q--;) EEPROM_WRITE_VAR(i, dummy);
|
|
168
|
+ }
|
|
169
|
+
|
169
|
170
|
} // Extruders Loop
|
170
|
171
|
|
171
|
172
|
#ifndef DOGLCD
|
|
@@ -290,12 +291,12 @@ void Config_RetrieveSettings() {
|
290
|
291
|
#endif
|
291
|
292
|
}
|
292
|
293
|
else {
|
293
|
|
- for (int q=3; q--;) EEPROM_READ_VAR(i, dummy);
|
|
294
|
+ for (int q=3; q--;) EEPROM_READ_VAR(i, dummy); // Ki, Kd, Kc
|
294
|
295
|
}
|
295
|
296
|
}
|
296
|
297
|
#else // !PIDTEMP
|
297
|
|
- // 4 x 3 = 12 slots for PID parameters
|
298
|
|
- for (int q=12; q--;) EEPROM_READ_VAR(i, dummy);
|
|
298
|
+ // 4 x 4 = 16 slots for PID parameters
|
|
299
|
+ for (int q=16; q--;) EEPROM_READ_VAR(i, dummy); // 4x Kp, Ki, Kd, Kc
|
299
|
300
|
#endif // !PIDTEMP
|
300
|
301
|
|
301
|
302
|
#ifndef DOGLCD
|