Also reset the PID values to defaults. Fixes #281

This commit is contained in:
daid303 2012-11-06 15:21:00 +01:00
parent d3ebc34958
commit 5d471e0f34

View file

@ -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