Cleanup around updatePID

This commit is contained in:
Scott Lahteine 2017-11-10 00:43:01 -06:00
parent 7aadfe32e7
commit b0ff3a4c6d
3 changed files with 19 additions and 16 deletions

View file

@ -438,12 +438,19 @@ class Temperature {
*/
#if HAS_PID_HEATING
static void PID_autotune(const float temp, const int8_t hotend, const int8_t ncycles, const bool set_result=false);
#endif
/**
* Update the temp manager when PID values change
*/
static void updatePID();
/**
* Update the temp manager when PID values change
*/
#if ENABLED(PIDTEMP)
FORCE_INLINE static void updatePID() {
#if ENABLED(PID_EXTRUSION_SCALING)
last_e_position = 0;
#endif
}
#endif
#endif
#if ENABLED(BABYSTEPPING)