Cleanup around updatePID

This commit is contained in:
Scott Lahteine
2017-11-10 00:48:00 -06:00
parent 75a58ee4b8
commit 1ed86adf9c
3 changed files with 19 additions and 16 deletions

View File

@ -430,12 +430,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();
#if ENABLED(PIDTEMP)
/**
* Update the temp manager when PID values change
*/
FORCE_INLINE static void updatePID() {
#if ENABLED(PID_EXTRUSION_SCALING)
last_e_position = 0;
#endif
}
#endif
#endif
#if ENABLED(BABYSTEPPING)