Single PID dataset with HOTENDS == 1
This commit is contained in:
parent
bf9967c65d
commit
3d78b690e5
|
@ -76,13 +76,13 @@ class Temperature {
|
|||
|
||||
#if ENABLED(PIDTEMP)
|
||||
|
||||
#if ENABLED(PID_PARAMS_PER_HOTEND)
|
||||
#if ENABLED(PID_PARAMS_PER_HOTEND) && HOTENDS > 1
|
||||
|
||||
static float Kp[HOTENDS], Ki[HOTENDS], Kd[HOTENDS];
|
||||
#if ENABLED(PID_ADD_EXTRUSION_RATE)
|
||||
static float Kc[HOTENDS];
|
||||
#endif
|
||||
#define PID_PARAM(param, e) Temperature::param[e]
|
||||
#define PID_PARAM(param, h) Temperature::param[h]
|
||||
|
||||
#else
|
||||
|
||||
|
@ -90,7 +90,7 @@ class Temperature {
|
|||
#if ENABLED(PID_ADD_EXTRUSION_RATE)
|
||||
static float Kc;
|
||||
#endif
|
||||
#define PID_PARAM(param, e) Temperature::param
|
||||
#define PID_PARAM(param, h) Temperature::param
|
||||
|
||||
#endif // PID_PARAMS_PER_HOTEND
|
||||
|
||||
|
|
Loading…
Reference in a new issue