Fix define used when PID is off (#13119)
Replaced `PID_MAX` with `BANG_MAX` since it should be the correct define to be used when PID is not enabled.
This commit is contained in:
parent
f7efe6f6c5
commit
773fa5c40f
@ -803,7 +803,7 @@ float Temperature::get_pid_output(const int8_t e) {
|
||||
pid_output = 0;
|
||||
else
|
||||
#endif
|
||||
pid_output = (current_temperature[HOTEND_INDEX] < target_temperature[HOTEND_INDEX]) ? PID_MAX : 0;
|
||||
pid_output = (current_temperature[HOTEND_INDEX] < target_temperature[HOTEND_INDEX]) ? BANG_MAX : 0;
|
||||
#endif
|
||||
|
||||
return pid_output;
|
||||
|
Loading…
Reference in New Issue
Block a user