Cleanup around updatePID
This commit is contained in:
parent
7aadfe32e7
commit
b0ff3a4c6d
3 changed files with 19 additions and 16 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue