Also reset the PID values to defaults. Fixes #281

master
daid303 12 years ago
parent d3ebc34958
commit 5d471e0f34

@ -212,6 +212,14 @@ inline void EEPROM_RetrieveSettings(bool def=false)
absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP; absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP;
absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP; absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP;
absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED; absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED;
#endif
#ifdef PIDTEMP
Kp = DEFAULT_Kp;
Ki = DEFAULT_Ki;
Kd = DEFAULT_Kp;
#ifdef PID_ADD_EXTRUSION_RATE
Kc = DEFAULT_Kc;
#endif
#endif #endif
} }
#ifdef EEPROM_CHITCHAT #ifdef EEPROM_CHITCHAT

Loading…
Cancel
Save