Merge pull request #3992 from thinkyhead/rc_pid_autotune_e_range

Throw an error in PID_autotune for E < -1
master
Scott Lahteine 9 years ago committed by GitHub
commit 27d5794298

@ -206,14 +206,17 @@ unsigned char Temperature::soft_pwm[HOTENDS];
next_auto_fan_check_ms = temp_ms + 2500UL;
#endif
if (false
if (hotend >=
#if ENABLED(PIDTEMP)
|| hotend >= HOTENDS
HOTENDS
#else
|| hotend >= 0
0
#endif
#if DISABLED(PIDTEMPBED)
|| hotend < 0
|| hotend <
#if ENABLED(PIDTEMPBED)
-1
#else
0
#endif
) {
SERIAL_ECHOLN(MSG_PID_BAD_EXTRUDER_NUM);

Loading…
Cancel
Save