Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw an error in PID_autotune for E < -1 #3992

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,18 @@ unsigned char Temperature::soft_pwm[HOTENDS];
next_auto_fan_check_ms = temp_ms + 2500UL;
#endif

if (false
#if ENABLED(PIDTEMP)
|| hotend >= HOTENDS
#else
|| hotend >= 0
#endif
#if DISABLED(PIDTEMPBED)
|| hotend < 0
#endif
if (hotend >=
#if ENABLED(PIDTEMP)
HOTENDS
#else
0
#endif
|| hotend <
#if ENABLED(PIDTEMPBED)
-1
#else
0
#endif
) {
SERIAL_ECHOLN(MSG_PID_BAD_EXTRUDER_NUM);
return;
Expand Down